cmake_modules/paths.cmake
changeset 14301 3342358bc2c3
parent 14274 084af6d2685f
child 15334 7e3bd4030aa5
--- a/cmake_modules/paths.cmake	Thu Nov 22 20:41:42 2018 +0100
+++ b/cmake_modules/paths.cmake	Thu Nov 22 22:18:21 2018 +0100
@@ -60,7 +60,7 @@
     set(CMAKE_INSTALL_RPATH "@executable_path/../Frameworks")
     #install_name_tool for libraries
     set(CMAKE_INSTALL_NAME_DIR "@executable_path/../Frameworks")
-elseif(NOT (${CMAKE_INSTALL_PREFIX} MATCHES "/usr"))
+else(APPLE AND NOT (${CMAKE_INSTALL_PREFIX} MATCHES "/usr"))
     #paths where to find libraries (final slash not optional):
     # - the first is relative to the executable
     # - the second is the same directory of the executable (so it runs in bin/)