Skip to content
Snippets Groups Projects
Commit 080de503 authored by Pere Mato Vila's avatar Pere Mato Vila
Browse files

Correct the RPATH for fix location installations (gnuinstall)

parent bbbcefc8
No related branches found
No related tags found
No related merge requests found
...@@ -258,7 +258,7 @@ set(CMAKE_MACOSX_RPATH TRUE) # use RPATH for MacOSX ...@@ -258,7 +258,7 @@ set(CMAKE_MACOSX_RPATH TRUE) # use RPATH for MacOSX
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) # point to directories outside the build tree to the install RPATH set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) # point to directories outside the build tree to the install RPATH
# Check whether to add RPATH to the installation (the build tree always has the RPATH enabled) # Check whether to add RPATH to the installation (the build tree always has the RPATH enabled)
if(rpath) if(rpath OR gnuinstall)
set(CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_FULL_LIBDIR}) # install LIBDIR set(CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_FULL_LIBDIR}) # install LIBDIR
set(CMAKE_SKIP_INSTALL_RPATH FALSE) # don't skip the full RPATH for the install tree set(CMAKE_SKIP_INSTALL_RPATH FALSE) # don't skip the full RPATH for the install tree
elseif(APPLE) elseif(APPLE)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment