mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-09 07:11:05 -06:00
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.
This commit is contained in:
@@ -228,7 +228,3 @@ int main(int argc, char* argv[])
|
||||
return require;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef ADD_MAINCRTSTARTUP
|
||||
void mainCRTStartup() {}
|
||||
#endif
|
||||
|
||||
@@ -210,7 +210,3 @@ int main(int argc, char* argv[])
|
||||
(void)argv;
|
||||
return require;
|
||||
}
|
||||
|
||||
#ifdef ADD_MAINCRTSTARTUP
|
||||
extern "C" void mainCRTStartup() {}
|
||||
#endif
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
PreprocessorDefinitions="@id_definitions@"
|
||||
MinimalRebuild="false"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="3"
|
||||
@@ -37,6 +36,7 @@
|
||||
LinkIncremental="1"
|
||||
GenerateDebugInformation="false"
|
||||
SubSystem="@id_subsystem@"
|
||||
EntryPointSymbol="@id_entrypoint@"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
|
||||
Reference in New Issue
Block a user