diff --git a/SamTFE/Sources/CMakeLists.txt b/SamTFE/Sources/CMakeLists.txt index e4bedbaa..6f056042 100644 --- a/SamTFE/Sources/CMakeLists.txt +++ b/SamTFE/Sources/CMakeLists.txt @@ -1016,7 +1016,7 @@ add_executable(SeriousSam target_link_libraries(SeriousSam ${ENGINELIB}) add_dependencies(SeriousSam ParseEntities) # Make symbols in the main executable available to dynamic objects -set_target_properties(SeriousSam PROPERTIES ENABLE_EXPORTS ON) +set_target_properties(${ENGINELIB} PROPERTIES ENABLE_EXPORTS ON LINK_FLAGS "-Wl,-lvulkan,-rpath,$ORIGIN") # !!! FIXME: this is an option because you have to recompile the entire engine twice. diff --git a/SamTSE/Sources/CMakeLists.txt b/SamTSE/Sources/CMakeLists.txt index e4bedbaa..079b6b19 100644 --- a/SamTSE/Sources/CMakeLists.txt +++ b/SamTSE/Sources/CMakeLists.txt @@ -996,7 +996,7 @@ if(MACOSX) endif() target_link_libraries(${ENGINELIB} ${ZLIB_LIBRARIES}) endif() -set_target_properties(${ENGINELIB} PROPERTIES ENABLE_EXPORTS ON) +set_target_properties(${ENGINELIB} PROPERTIES ENABLE_EXPORTS ON LINK_FLAGS "-Wl,-lvulkan,-rpath,$ORIGIN") add_executable(SeriousSam #${ENGINE_SRCS}