From 5955c86ec5cd648f0cf817b6f087fca2cbf4c661 Mon Sep 17 00:00:00 2001 From: Florent Castelli Date: Tue, 17 Jan 2017 04:23:56 +0100 Subject: [PATCH] cmake: Set MACOSX_RPATH to OFF MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In newer versions of CMake, the variable is ON by default. This generates imports like @rpath/libusb.dylib which the packaging script doesn’t understand. We don’t really need @rpath, so we can just disable it at the global scope instead of fixing the script. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 58af5915c0..19a3a95511 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -82,6 +82,9 @@ if (APPLE) set(CMAKE_C_COMPILER "clang") endif() endif() + + # This doesn't play with with the packaging script that doesn't understand @rpath + set(CMAKE_MACOSX_RPATH OFF) endif() set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/CMakeTests) # Libraries to link