MSVC: Add default WindowsPhone and WindowsStore compile flags
Also set the list of standard libraries to empty.
This commit is contained in:
parent
1c94558abb
commit
c72f0887ce
|
@ -162,6 +162,10 @@ if(WINCE)
|
||||||
if (MSVC_VERSION LESS 1600)
|
if (MSVC_VERSION LESS 1600)
|
||||||
set(CMAKE_C_STANDARD_LIBRARIES_INIT "${CMAKE_C_STANDARD_LIBRARIES_INIT} corelibc.lib")
|
set(CMAKE_C_STANDARD_LIBRARIES_INIT "${CMAKE_C_STANDARD_LIBRARIES_INIT} corelibc.lib")
|
||||||
endif ()
|
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()
|
else()
|
||||||
set(_PLATFORM_DEFINES "/DWIN32")
|
set(_PLATFORM_DEFINES "/DWIN32")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue