diff options
Diffstat (limited to 'Graphics/GraphicsEngineVulkan')
| -rw-r--r-- | Graphics/GraphicsEngineVulkan/CMakeLists.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Graphics/GraphicsEngineVulkan/CMakeLists.txt b/Graphics/GraphicsEngineVulkan/CMakeLists.txt index 6480a32c..b31e5395 100644 --- a/Graphics/GraphicsEngineVulkan/CMakeLists.txt +++ b/Graphics/GraphicsEngineVulkan/CMakeLists.txt @@ -242,12 +242,13 @@ elseif (CMAKE_CXX_COMPILER_ID MATCHES "GNU") LINK_FLAGS "-Wl,--no-undefined -Wl,--no-allow-shlib-undefined" ) if(PLATFORM_WIN32) + # MinGW # Restrict export to GetEngineFactoryVk file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/export.map "{ global: *GetEngineFactoryVk*; local: *; };" ) - set_property(TARGET Diligent-GraphicsEngineVk-shared APPEND_STRING PROPERTY - LINK_FLAGS " -Wl,--version-script=export.map" + set_target_properties(Diligent-GraphicsEngineVk-shared PROPERTIES + LINK_FLAGS "-Wl,--version-script=export.map" ) endif() endif() |
