Backed out changeset 084af6d2685f
authorWuzzy <Wuzzy2@mail.ru>
Thu, 22 Nov 2018 22:18:21 +0100
changeset 14280 3342358bc2c3
parent 14279 20b08e59730d
child 14281 e754b516cc35
Backed out changeset 084af6d2685f
cmake_modules/paths.cmake
--- 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/)