Skip to content

Commit

Permalink
Fix for UWP for CMake
Browse files Browse the repository at this point in the history
  • Loading branch information
walbourn committed Feb 8, 2021
1 parent 04c53eb commit 407f0a3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -119,5 +119,10 @@ endif()

if(WIN32)
target_compile_definitions(${PROJECT_NAME} PRIVATE _UNICODE UNICODE)
target_compile_definitions(${PROJECT_NAME} PRIVATE _WIN32_WINNT=0x0601)

if(WINDOWS_STORE)
target_compile_definitions(${PROJECT_NAME} PRIVATE _WIN32_WINNT=0x0A00)
else()
target_compile_definitions(${PROJECT_NAME} PRIVATE _WIN32_WINNT=0x0601)
endif()
endif()

0 comments on commit 407f0a3

Please sign in to comment.