Skip to content

Commit 72eed01

Browse files
authored
Export dll symbols on non-MSVC Windows builds (#712)
1 parent 57aa031 commit 72eed01

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

Graphics/Archiver/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ add_library(Diligent-Archiver-shared SHARED
7878
readme.md
7979
)
8080

81-
if(MSVC)
81+
if((PLATFORM_WIN32 OR PLATFORM_UNIVERSAL_WINDOWS) AND NOT MINGW_BUILD)
8282
target_sources(Diligent-Archiver-shared PRIVATE ${DLL_SOURCE})
8383
endif()
8484

Graphics/GraphicsEngineOpenGL/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,8 @@ add_library(Diligent-GraphicsEngineOpenGL-static STATIC
173173
add_library(Diligent-GraphicsEngineOpenGL-shared SHARED
174174
readme.md
175175
)
176-
if(MSVC)
176+
177+
if((PLATFORM_WIN32 OR PLATFORM_UNIVERSAL_WINDOWS) AND NOT MINGW_BUILD)
177178
target_sources(Diligent-GraphicsEngineOpenGL-shared PRIVATE ${DLL_SOURCE})
178179
endif()
179180

Graphics/GraphicsEngineVulkan/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ add_library(Diligent-GraphicsEngineVk-shared SHARED
162162
readme.md
163163
)
164164

165-
if(MSVC)
165+
if((PLATFORM_WIN32 OR PLATFORM_UNIVERSAL_WINDOWS) AND NOT MINGW_BUILD)
166166
target_sources(Diligent-GraphicsEngineVk-shared PRIVATE ${DLL_SOURCE})
167167
endif()
168168

Graphics/GraphicsEngineWebGPU/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ add_library(Diligent-GraphicsEngineWebGPU-shared SHARED
106106
readme.md
107107
)
108108

109-
if(MSVC)
109+
if((PLATFORM_WIN32 OR PLATFORM_UNIVERSAL_WINDOWS) AND NOT MINGW_BUILD)
110110
target_sources(Diligent-GraphicsEngineWebGPU-shared PRIVATE ${DLL_SOURCE})
111111
endif()
112112

0 commit comments

Comments
 (0)