cmake_modules/paths.cmake
changeset 14253 084af6d2685f
parent 11329 ac6715709812
child 14280 3342358bc2c3
--- a/cmake_modules/paths.cmake	Mon Nov 19 23:27:36 2018 +0100
+++ b/cmake_modules/paths.cmake	Tue Nov 20 00:09:35 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")
-else(APPLE AND NOT (${CMAKE_INSTALL_PREFIX} MATCHES "/usr"))
+elseif(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/)