Fixed UWP builds with CMakeLists

This commit is contained in:
Chuck Walbourn 2020-12-24 13:12:02 -08:00
parent 7a3e246887
commit 9945e234a0

View File

@ -229,8 +229,14 @@ if ( CMAKE_CXX_COMPILER_ID MATCHES "MSVC" )
endif()
if(MSVC)
# We use Windows 7 here
target_compile_definitions(${PROJECT_NAME} PRIVATE _UNICODE UNICODE _WIN32_WINNT=0x0601)
target_compile_definitions(${PROJECT_NAME} PRIVATE _UNICODE UNICODE)
if(WINDOWS_STORE)
target_compile_definitions(${PROJECT_NAME} PRIVATE _WIN32_WINNT=0x0A00)
else()
target_compile_definitions(${PROJECT_NAME} PRIVATE _WIN32_WINNT=0x0601)
endif()
if(BUILD_TOOLS)
target_compile_definitions(uvatlastool PRIVATE _UNICODE UNICODE _WIN32_WINNT=0x0601)
endif()