summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineVulkan
diff options
context:
space:
mode:
Diffstat (limited to 'Graphics/GraphicsEngineVulkan')
-rw-r--r--Graphics/GraphicsEngineVulkan/CMakeLists.txt5
1 files changed, 3 insertions, 2 deletions
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()