MSVC: Add default WindowsPhone and WindowsStore compile flags

Also set the list of standard libraries to empty.
This commit is contained in:
Paul Annetts 2014-07-28 14:56:13 -04:00 committed by Brad King
parent 1c94558abb
commit c72f0887ce
1 changed files with 4 additions and 0 deletions

View File

@ -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")