mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 14:01:45 +00:00
- add $ORIGIN to rpath in Linux
This commit is contained in:
parent
a20d519488
commit
550e1212af
1 changed files with 5 additions and 0 deletions
|
@ -1361,6 +1361,11 @@ 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
|
||||
)
|
||||
endif()
|
||||
|
||||
add_custom_command(TARGET zdoom POST_BUILD
|
||||
|
|
Loading…
Reference in a new issue