mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-10 11:25:59 +03:00
chore(build): add executable-local library search paths (#89)
This commit is contained in:
parent
df1ab32267
commit
de5e3fc201
@ -65,6 +65,17 @@ if(WHOA_SYSTEM_LINUX OR WHOA_SYSTEM_MAC)
|
|||||||
find_package(Threads REQUIRED)
|
find_package(Threads REQUIRED)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# Library search paths
|
||||||
|
if(WHOA_SYSTEM_MAC)
|
||||||
|
set(CMAKE_SKIP_BUILD_RPATH FALSE)
|
||||||
|
set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
|
||||||
|
set(CMAKE_INSTALL_RPATH "@executable_path")
|
||||||
|
elseif(WHOA_SYSTEM_LINUX)
|
||||||
|
set(CMAKE_SKIP_BUILD_RPATH FALSE)
|
||||||
|
set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
|
||||||
|
set(CMAKE_INSTALL_RPATH "$ORIGIN")
|
||||||
|
endif()
|
||||||
|
|
||||||
add_subdirectory(lib)
|
add_subdirectory(lib)
|
||||||
add_subdirectory(src)
|
add_subdirectory(src)
|
||||||
add_subdirectory(test)
|
add_subdirectory(test)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user