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/CMakeCCompilerId.c.in | |
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/CMakeCCompilerId.c.in')
-rw-r--r-- | Modules/CMakeCCompilerId.c.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/CMakeCCompilerId.c.in b/Modules/CMakeCCompilerId.c.in index 2d76c7a..3d1380c 100644 --- a/Modules/CMakeCCompilerId.c.in +++ b/Modules/CMakeCCompilerId.c.in @@ -228,3 +228,7 @@ int main(int argc, char* argv[]) return require; } #endif + +#ifdef ADD_MAINCRTSTARTUP +void mainCRTStartup() {} +#endif |