Skip to content
This repository was archived by the owner on Feb 23, 2026. It is now read-only.

Commit 407f0a3

Browse files
committed
Fix for UWP for CMake
1 parent 04c53eb commit 407f0a3

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,5 +119,10 @@ endif()
119119

120120
if(WIN32)
121121
target_compile_definitions(${PROJECT_NAME} PRIVATE _UNICODE UNICODE)
122-
target_compile_definitions(${PROJECT_NAME} PRIVATE _WIN32_WINNT=0x0601)
122+
123+
if(WINDOWS_STORE)
124+
target_compile_definitions(${PROJECT_NAME} PRIVATE _WIN32_WINNT=0x0A00)
125+
else()
126+
target_compile_definitions(${PROJECT_NAME} PRIVATE _WIN32_WINNT=0x0601)
127+
endif()
123128
endif()

0 commit comments

Comments
 (0)