summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeDetermineCompilerId.cmake
diff options
context:
space:
mode:
authorGilles Khouzam <gillesk@microsoft.com>2014-07-28 18:27:59 (GMT)
committerBrad King <brad.king@kitware.com>2014-07-31 18:08:48 (GMT)
commitb94ddf6cd70e811e4bc3f3c28ef7195bcf2bb0cf (patch)
treede920a648da90adc5fc49975e5374e35fcba378a /Modules/CMakeDetermineCompilerId.cmake
parentd7938bff37bfa05f34b9ad5a46ae3aff54955eea (diff)
downloadCMake-b94ddf6cd70e811e4bc3f3c28ef7195bcf2bb0cf.zip
CMake-b94ddf6cd70e811e4bc3f3c28ef7195bcf2bb0cf.tar.gz
CMake-b94ddf6cd70e811e4bc3f3c28ef7195bcf2bb0cf.tar.bz2
CMakeDetermineCompilerId: Recognize WindowsPhone and WindowsStore
When CMAKE_SYSTEM_NAME is set to target one of these, add ApplicationType and ApplicationTypeRevision elements to the .vcxproj file used to identify the compiler so that the WindowsPhone or WindowsStore toolchains can work. Co-Author: Brad King <brad.king@kitware.com>
Diffstat (limited to 'Modules/CMakeDetermineCompilerId.cmake')
-rw-r--r--Modules/CMakeDetermineCompilerId.cmake12
1 files changed, 12 insertions, 0 deletions
diff --git a/Modules/CMakeDetermineCompilerId.cmake b/Modules/CMakeDetermineCompilerId.cmake
index 025d296..a780fa6 100644
--- a/Modules/CMakeDetermineCompilerId.cmake
+++ b/Modules/CMakeDetermineCompilerId.cmake
@@ -168,6 +168,18 @@ Id flags: ${testflags}
else()
set(id_toolset "")
endif()
+ if(CMAKE_SYSTEM_NAME STREQUAL "WindowsPhone")
+ set(id_system "<ApplicationType>Windows Phone</ApplicationType>")
+ elseif(CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
+ set(id_system "<ApplicationType>Windows Store</ApplicationType>")
+ else()
+ set(id_system "")
+ endif()
+ if(id_system AND CMAKE_SYSTEM_VERSION)
+ set(id_system_version "<ApplicationTypeRevision>${CMAKE_SYSTEM_VERSION}</ApplicationTypeRevision>")
+ else()
+ set(id_system_version "")
+ endif()
if(CMAKE_VS_WINCE_VERSION)
set(id_entrypoint "mainACRTStartup")
if("${vs_version}" VERSION_LESS 9)