diff options
| author | assiduous <assiduous@diligentgraphics.com> | 2020-05-01 22:50:06 +0000 |
|---|---|---|
| committer | assiduous <assiduous@diligentgraphics.com> | 2020-05-01 22:50:06 +0000 |
| commit | 3c76d22fce1caa114fd00bece840d01d39247296 (patch) | |
| tree | 3726b92faba1feccd1d6c18b8fb68fb9d69ff55f /Graphics/GraphicsEngineOpenGL | |
| parent | Use export map to restrict visible lib symbols under MinGW. (diff) | |
| download | DiligentCore-3c76d22fce1caa114fd00bece840d01d39247296.tar.gz DiligentCore-3c76d22fce1caa114fd00bece840d01d39247296.zip | |
Couple of minor updates to GL and VK backend cmake files
Diffstat (limited to 'Graphics/GraphicsEngineOpenGL')
| -rw-r--r-- | Graphics/GraphicsEngineOpenGL/CMakeLists.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Graphics/GraphicsEngineOpenGL/CMakeLists.txt b/Graphics/GraphicsEngineOpenGL/CMakeLists.txt index d7446208..89b05459 100644 --- a/Graphics/GraphicsEngineOpenGL/CMakeLists.txt +++ b/Graphics/GraphicsEngineOpenGL/CMakeLists.txt @@ -218,12 +218,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 GetEngineFactoryOpenGL file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/export.map "{ global: *GetEngineFactoryOpenGL*; local: *; };" ) - set_property(TARGET Diligent-GraphicsEngineOpenGL-shared APPEND_STRING PROPERTY - LINK_FLAGS " -Wl,--version-script=export.map" + set_target_properties(Diligent-GraphicsEngineOpenGL-shared PROPERTIES + LINK_FLAGS "-Wl,--version-script=export.map" ) endif() endif() |
