diff options
Diffstat (limited to 'Graphics')
| -rw-r--r-- | Graphics/GraphicsEngineOpenGL/CMakeLists.txt | 5 | ||||
| -rw-r--r-- | Graphics/GraphicsEngineVulkan/CMakeLists.txt | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/Graphics/GraphicsEngineOpenGL/CMakeLists.txt b/Graphics/GraphicsEngineOpenGL/CMakeLists.txt index 89b05459..747c6e63 100644 --- a/Graphics/GraphicsEngineOpenGL/CMakeLists.txt +++ b/Graphics/GraphicsEngineOpenGL/CMakeLists.txt @@ -223,8 +223,9 @@ elseif (CMAKE_CXX_COMPILER_ID MATCHES "GNU") file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/export.map "{ global: *GetEngineFactoryOpenGL*; local: *; };" ) - set_target_properties(Diligent-GraphicsEngineOpenGL-shared PROPERTIES - LINK_FLAGS "-Wl,--version-script=export.map" + # set_target_properties does not append link flags, but overwrites them + set_property(TARGET Diligent-GraphicsEngineOpenGL-shared APPEND_STRING PROPERTY + LINK_FLAGS " -Wl,--version-script=export.map" ) endif() endif() diff --git a/Graphics/GraphicsEngineVulkan/CMakeLists.txt b/Graphics/GraphicsEngineVulkan/CMakeLists.txt index b31e5395..2bfd9acd 100644 --- a/Graphics/GraphicsEngineVulkan/CMakeLists.txt +++ b/Graphics/GraphicsEngineVulkan/CMakeLists.txt @@ -247,8 +247,9 @@ elseif (CMAKE_CXX_COMPILER_ID MATCHES "GNU") file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/export.map "{ global: *GetEngineFactoryVk*; local: *; };" ) - set_target_properties(Diligent-GraphicsEngineVk-shared PROPERTIES - LINK_FLAGS "-Wl,--version-script=export.map" + # set_target_properties does not append link flags, but overwrites them + set_property(TARGET Diligent-GraphicsEngineVk-shared APPEND_STRING PROPERTY + LINK_FLAGS " -Wl,--version-script=export.map" ) endif() endif() |
