Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Rpath active for make install on osX
authorPaul Bédaride <paul.bedaride@gmail.com>
Thu, 12 Jun 2014 13:47:07 +0000 (15:47 +0200)
committerPaul Bédaride <paul.bedaride@gmail.com>
Thu, 12 Jun 2014 13:47:28 +0000 (15:47 +0200)
CMakeLists.txt

index a79cfa2..73b8dfd 100644 (file)
@@ -10,6 +10,11 @@ endif()
 
 enable_language(CXX)
 
+if (APPLE) #MAC
+  set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
+  set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
+endif()
+
 if (NOT DEFINED enable_smpi OR enable_smpi) # smpi is enabled by default
   # Call enable_language(Fortran) in order to load the build rules for
   # this language, needed by teshsuite/smpi/mpich-test/.  Use