summaryrefslogtreecommitdiffstats
path: root/Modules/Platform
diff options
context:
space:
mode:
authorPaul Annetts <paul@lightunobscured.com>2014-07-28 18:56:13 (GMT)
committerBrad King <brad.king@kitware.com>2014-07-31 18:08:56 (GMT)
commitc72f0887cee6c3c47f50efb44256476045cf801f (patch)
tree3e68ca2bc3a90583a56e655191e229428bfdca62 /Modules/Platform
parent1c94558abb653968de6da2cb4672006f31ca0d14 (diff)
downloadCMake-c72f0887cee6c3c47f50efb44256476045cf801f.zip
CMake-c72f0887cee6c3c47f50efb44256476045cf801f.tar.gz
CMake-c72f0887cee6c3c47f50efb44256476045cf801f.tar.bz2
MSVC: Add default WindowsPhone and WindowsStore compile flags
Also set the list of standard libraries to empty.
Diffstat (limited to 'Modules/Platform')
-rw-r--r--Modules/Platform/Windows-MSVC.cmake4
1 files changed, 4 insertions, 0 deletions
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")