mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-16 22:37:30 +08:00
MSVC: Add default WindowsPhone and WindowsStore compile flags
Also set the list of standard libraries to empty.
This commit is contained in:
@@ -162,6 +162,10 @@ if(WINCE)
|
||||
if (MSVC_VERSION LESS 1600)
|
||||
set(CMAKE_C_STANDARD_LIBRARIES_INIT "${CMAKE_C_STANDARD_LIBRARIES_INIT} corelibc.lib")
|
||||
endif ()
|
||||
elseif(WINDOWS_PHONE OR WINDOWS_STORE)
|
||||
set(_FLAGS_C " /DUNICODE /D_UNICODE")
|
||||
set(_FLAGS_CXX " /DUNICODE /D_UNICODE /GR /EHsc")
|
||||
set(CMAKE_C_STANDARD_LIBRARIES_INIT "")
|
||||
else()
|
||||
set(_PLATFORM_DEFINES "/DWIN32")
|
||||
|
||||
|
Reference in New Issue
Block a user