From c72f0887cee6c3c47f50efb44256476045cf801f Mon Sep 17 00:00:00 2001 From: Paul Annetts Date: Mon, 28 Jul 2014 14:56:13 -0400 Subject: MSVC: Add default WindowsPhone and WindowsStore compile flags Also set the list of standard libraries to empty. --- Modules/Platform/Windows-MSVC.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Modules/Platform/Windows-MSVC.cmake b/Modules/Platform/Windows-MSVC.cmake index b0d3e49..9431e90 100644 --- a/Modules/Platform/Windows-MSVC.cmake +++ b/Modules/Platform/Windows-MSVC.cmake @@ -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") -- cgit v0.12