Skip to content

Commit

Permalink
- only overwrite rpath if not already defined
Browse files Browse the repository at this point in the history
  • Loading branch information
madame-rachelle committed Mar 12, 2022
1 parent 0edfc5a commit 8002e9d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions source/CMakeLists.txt
Expand Up @@ -1475,11 +1475,13 @@ if( NOT WIN32 AND NOT APPLE )
add_custom_command( TARGET ${PROJECT_NAME} POST_BUILD
COMMAND chmod +x ${CMAKE_CURRENT_BINARY_DIR}/link-make
COMMAND /bin/sh -c ${CMAKE_CURRENT_BINARY_DIR}/link-make )
set_target_properties(${PROJECT_NAME} PROPERTIES
#allow libzmusiclite.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 ${PROJECT_NAME} POST_BUILD
Expand Down

0 comments on commit 8002e9d

Please sign in to comment.