mirror of
https://github.com/microsoft/UVAtlas
synced 2024-11-09 13:50:05 +00:00
Fixed UWP builds with CMakeLists
This commit is contained in:
parent
7a3e246887
commit
9945e234a0
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user