summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeDetermineCompilerId.cmake
diff options
context:
space:
mode:
authorPatrick Gansterer <paroga@paroga.com>2012-11-30 14:15:06 (GMT)
committerPatrick Gansterer <paroga@paroga.com>2012-11-30 14:15:06 (GMT)
commit8e85822e2bd00db737b585393a1ad3c77895e071 (patch)
tree6fbf36e98bb35f0d44f73855d9f1a2333ba56ca1 /Modules/CMakeDetermineCompilerId.cmake
parent5bf9fd8253ec804498c0f3339c4d706cab3673ea (diff)
downloadCMake-8e85822e2bd00db737b585393a1ad3c77895e071.zip
CMake-8e85822e2bd00db737b585393a1ad3c77895e071.tar.gz
CMake-8e85822e2bd00db737b585393a1ad3c77895e071.tar.bz2
VS: Add the entry point when compiling for WindowsCE
Set the entry point to mainACRTStartup to make sure that main() can be found when linking the application to check the compiler.
Diffstat (limited to 'Modules/CMakeDetermineCompilerId.cmake')
-rw-r--r--Modules/CMakeDetermineCompilerId.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CMakeDetermineCompilerId.cmake b/Modules/CMakeDetermineCompilerId.cmake
index 40e4f5a..609f35b 100644
--- a/Modules/CMakeDetermineCompilerId.cmake
+++ b/Modules/CMakeDetermineCompilerId.cmake
@@ -141,7 +141,7 @@ Id flags: ${testflags}
set(id_toolset "")
endif()
if(CMAKE_VS_WINCE_VERSION)
- set(id_definitions "ADD_MAINCRTSTARTUP")
+ set(id_entrypoint "mainACRTStartup")
set(id_subsystem 9)
else()
set(id_subsystem 1)