mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-02-01 03:21:15 +00:00
cmake: set install runpath
This commit is contained in:
parent
164eb57d2b
commit
37245b2150
@ -812,6 +812,12 @@ if (NOT (NINTENDO_3DS OR WINDOWS_STORE OR VITA))
|
|||||||
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
||||||
BUNDLE DESTINATION "."
|
BUNDLE DESTINATION "."
|
||||||
)
|
)
|
||||||
|
if(APPLE)
|
||||||
|
elseif(UNIX)
|
||||||
|
set(rel_libpath "${CMAKE_INSTALL_FULL_LIBDIR}")
|
||||||
|
cmake_path(RELATIVE_PATH rel_libpath BASE_DIRECTORY "${CMAKE_INSTALL_FULL_BINDIR}")
|
||||||
|
set_property(TARGET isle ${install_extra_targets} APPEND PROPERTY INSTALL_RPATH "$ORIGIN/${rel_libpath}")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
if (ISLE_BUILD_CONFIG)
|
if (ISLE_BUILD_CONFIG)
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user