cmake_modules/paths.cmake
changeset 15503 58ce582ae87d
parent 15334 7e3bd4030aa5
--- a/cmake_modules/paths.cmake	Wed Oct 23 17:45:28 2019 -0400
+++ b/cmake_modules/paths.cmake	Thu Oct 24 09:41:10 2019 -0400
@@ -61,7 +61,11 @@
     #install_name_tool for libraries
     set(CMAKE_BUILD_WITH_INSTALL_NAME_DIR TRUE)
     set(CMAKE_INSTALL_NAME_DIR "@executable_path/../Frameworks")
-else(APPLE AND NOT (${CMAKE_INSTALL_PREFIX} MATCHES "/usr"))
+# should this be a separate if block like so
+#if(NOT APPLE AND NOT (${CMAKE_INSTALL_PREFIX} MATCHES "/usr"))
+# there were some conditions here that implied not setting the RPATH if installed to /usr 
+# but it was not being applied due to else not actually taking parameters  (HT wuzzy)
+else()
     #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/)