diff options
author | Patrick Gansterer <paroga@paroga.com> | 2012-11-20 12:37:50 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-11-27 13:31:19 (GMT) |
commit | 40c36c9f7bd101185b06ddf2aee079ccbe7634d3 (patch) | |
tree | ec739b73730ab2beb87e5e438b890ce4cb440648 /Modules/CMakeDetermineCompilerId.cmake | |
parent | 038df9e49e6fcb54d6f6a1bcfb09f6a0e5ec0c2e (diff) | |
download | CMake-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/CMakeDetermineCompilerId.cmake')
-rw-r--r-- | Modules/CMakeDetermineCompilerId.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/CMakeDetermineCompilerId.cmake b/Modules/CMakeDetermineCompilerId.cmake index 05430a6..43469ea 100644 --- a/Modules/CMakeDetermineCompilerId.cmake +++ b/Modules/CMakeDetermineCompilerId.cmake @@ -140,6 +140,9 @@ Id flags: ${testflags} else() set(id_toolset "") endif() + if(CMAKE_VS_WINCE_VERSION) + set(id_definitions "ADD_MAINCRTSTARTUP") + endif() if("${CMAKE_MAKE_PROGRAM}" MATCHES "[Mm][Ss][Bb][Uu][Ii][Ll][Dd]") set(build /p:Configuration=Debug /p:Platform=@id_arch@ /p:VisualStudioVersion=${vs_version}.0) elseif("${CMAKE_MAKE_PROGRAM}" MATCHES "[Mm][Ss][Dd][Ee][Vv]") |