1
0
Fork 0

Easy rpath solution.

Supported for UNIX-like (excluding Apple, Cygwin).
This commit is contained in:
Scott Giese 2020-12-16 23:34:59 -06:00
parent d04c1a00f2
commit 1781bebb12

View file

@ -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)