Don't set rpath if libCBot is compiled statically
parent
ffdba25411
commit
bea84f0af4
|
@ -240,5 +240,6 @@ add_executable(colobot ${SOURCES})
|
|||
target_link_libraries(colobot ${LIBS})
|
||||
|
||||
install(TARGETS colobot RUNTIME DESTINATION ${COLOBOT_INSTALL_BIN_DIR})
|
||||
set_target_properties(colobot PROPERTIES INSTALL_RPATH ${COLOBOT_INSTALL_LIB_DIR})
|
||||
|
||||
if(NOT CBOT_STATIC)
|
||||
set_target_properties(colobot PROPERTIES INSTALL_RPATH ${COLOBOT_INSTALL_LIB_DIR})
|
||||
endif()
|
||||
|
|
Loading…
Reference in New Issue