Easy rpath solution.
Supported for UNIX-like (excluding Apple, Cygwin).
This commit is contained in:
parent
d04c1a00f2
commit
1781bebb12
1 changed files with 2 additions and 0 deletions
|
@ -43,6 +43,8 @@ if(APPLE)
|
|||
# when building, don't use the install RPATH already
|
||||
# (but later on when installing)
|
||||
SET(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
|
||||
elseif (UNIX AND NOT CYGWIN)
|
||||
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH FALSE CACHE BOOL "Append linker search paths to the runtime search path")
|
||||
endif()
|
||||
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
|
|
Loading…
Add table
Reference in a new issue