summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeDetermineSystem.cmake
diff options
context:
space:
mode:
authorPatrick Gansterer <paroga@paroga.com>2012-11-20 12:37:50 (GMT)
committerBrad King <brad.king@kitware.com>2012-11-27 13:31:19 (GMT)
commit40c36c9f7bd101185b06ddf2aee079ccbe7634d3 (patch)
treeec739b73730ab2beb87e5e438b890ce4cb440648 /Modules/CMakeDetermineSystem.cmake
parent038df9e49e6fcb54d6f6a1bcfb09f6a0e5ec0c2e (diff)
downloadCMake-40c36c9f7bd101185b06ddf2aee079ccbe7634d3.zip
CMake-40c36c9f7bd101185b06ddf2aee079ccbe7634d3.tar.gz
CMake-40c36c9f7bd101185b06ddf2aee079ccbe7634d3.tar.bz2
VS: Make DetermineCompilerId working with WinCE too
Add a dummy mainCRTStartup() function, since the linker searches for it instead of main() and set the CMAKE_SYSTEM_* variables depending on the MSVC_C_ARCHITECTURE_ID and CMAKE_VS_WINCE_VERSION variables.
Diffstat (limited to 'Modules/CMakeDetermineSystem.cmake')
-rw-r--r--Modules/CMakeDetermineSystem.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/CMakeDetermineSystem.cmake b/Modules/CMakeDetermineSystem.cmake
index cd33447..c7f9c32 100644
--- a/Modules/CMakeDetermineSystem.cmake
+++ b/Modules/CMakeDetermineSystem.cmake
@@ -106,6 +106,12 @@ if(CMAKE_SYSTEM_NAME)
set(CMAKE_CROSSCOMPILING TRUE)
endif()
set(PRESET_CMAKE_SYSTEM_NAME TRUE)
+elseif(CMAKE_VS_WINCE_VERSION)
+ set(CMAKE_SYSTEM_NAME "WindowsCE")
+ set(CMAKE_SYSTEM_VERSION "${CMAKE_VS_WINCE_VERSION}")
+ set(CMAKE_SYSTEM_PROCESSOR "${MSVC_C_ARCHITECTURE_ID}")
+ set(CMAKE_CROSSCOMPILING TRUE)
+ set(PRESET_CMAKE_SYSTEM_NAME TRUE)
else()
set(CMAKE_SYSTEM_NAME "${CMAKE_HOST_SYSTEM_NAME}")
set(CMAKE_SYSTEM_VERSION "${CMAKE_HOST_SYSTEM_VERSION}")