mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-01-20 08:31:11 +00:00
- only overwrite rpath if not already defined
This commit is contained in:
parent
bfd0f8fa0a
commit
d348bad823
1 changed files with 7 additions and 5 deletions
|
@ -1362,11 +1362,13 @@ if( NOT WIN32 AND NOT APPLE )
|
|||
add_custom_command( TARGET zdoom POST_BUILD
|
||||
COMMAND chmod +x ${CMAKE_CURRENT_BINARY_DIR}/link-make
|
||||
COMMAND /bin/sh -c ${CMAKE_CURRENT_BINARY_DIR}/link-make )
|
||||
set_target_properties(zdoom PROPERTIES
|
||||
#allow libzmusic.so.1 library in same folder as executable at runtime
|
||||
INSTALL_RPATH "\$ORIGIN"
|
||||
BUILD_WITH_INSTALL_RPATH ON
|
||||
)
|
||||
IF ("${INSTALL_RPATH}" STREQUAL "")
|
||||
set_target_properties(zdoom PROPERTIES
|
||||
#allow libzmusic.so.1 library in same folder as executable at runtime
|
||||
INSTALL_RPATH "\$ORIGIN"
|
||||
BUILD_WITH_INSTALL_RPATH ON
|
||||
)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
add_custom_command(TARGET zdoom POST_BUILD
|
||||
|
|
Loading…
Reference in a new issue