Skip to content

Commit 580b351

Browse files
committed
Account for PLATFORM_UNIVERSAL_WINDOWS in non-msvc conditionals
1 parent c3f1547 commit 580b351

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

Graphics/Archiver/CMakeLists.txt

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

81-
if(PLATFORM_WIN32 AND NOT MINGW_BUILD)
81+
if((PLATFORM_WIN32 OR
82+
PLATFORM_UNIVERSAL_WINDOWS) AND
83+
NOT MINGW_BUILD)
8284
target_sources(Diligent-Archiver-shared PRIVATE ${DLL_SOURCE})
8385
endif()
8486

Graphics/GraphicsEngineOpenGL/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,10 @@ add_library(Diligent-GraphicsEngineOpenGL-static STATIC
173173
add_library(Diligent-GraphicsEngineOpenGL-shared SHARED
174174
readme.md
175175
)
176-
if(PLATFORM_WIN32 AND NOT MINGW_BUILD)
176+
177+
if((PLATFORM_WIN32 OR
178+
PLATFORM_UNIVERSAL_WINDOWS) AND
179+
NOT MINGW_BUILD)
177180
target_sources(Diligent-GraphicsEngineOpenGL-shared PRIVATE ${DLL_SOURCE})
178181
endif()
179182

Graphics/GraphicsEngineVulkan/CMakeLists.txt

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

165-
if(PLATFORM_WIN32 AND NOT MINGW_BUILD)
165+
if((PLATFORM_WIN32 OR
166+
PLATFORM_UNIVERSAL_WINDOWS) AND
167+
NOT MINGW_BUILD)
166168
target_sources(Diligent-GraphicsEngineVk-shared PRIVATE ${DLL_SOURCE})
167169
endif()
168170

Graphics/GraphicsEngineWebGPU/CMakeLists.txt

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

109-
if(PLATFORM_WIN32 AND NOT MINGW_BUILD)
109+
if((PLATFORM_WIN32 OR
110+
PLATFORM_UNIVERSAL_WINDOWS) AND
111+
NOT MINGW_BUILD)
110112
target_sources(Diligent-GraphicsEngineWebGPU-shared PRIVATE ${DLL_SOURCE})
111113
endif()
112114

0 commit comments

Comments
 (0)