Merge topic 'windows-ce-vs-subsystem'

cf82d1e VS: Specify WinCE subsystems correctly in VS 9 2008
8f4cae7 VS: Specify WinCE subsystem also for DLLs
This commit is contained in:
Brad King 2013-02-15 13:12:08 -05:00 committed by CMake Topic Stage
commit bc6b0326b3
1 changed files with 20 additions and 2 deletions

View File

@ -1134,6 +1134,17 @@ void cmLocalVisualStudio7Generator::OutputBuildTool(std::ostream& fout,
{
fout << "\t\t\t\tGenerateDebugInformation=\"TRUE\"\n";
}
if(this->WindowsCEProject)
{
if(this->GetVersion() < VS9)
{
fout << "\t\t\t\tSubSystem=\"9\"\n";
}
else
{
fout << "\t\t\t\tSubSystem=\"8\"\n";
}
}
std::string stackVar = "CMAKE_";
stackVar += linkLanguage;
stackVar += "_STACK_SIZE";
@ -1223,8 +1234,15 @@ void cmLocalVisualStudio7Generator::OutputBuildTool(std::ostream& fout,
}
if ( this->WindowsCEProject )
{
fout << "\t\t\t\tSubSystem=\"9\"\n"
<< "\t\t\t\tEntryPointSymbol=\""
if(this->GetVersion() < VS9)
{
fout << "\t\t\t\tSubSystem=\"9\"\n";
}
else
{
fout << "\t\t\t\tSubSystem=\"8\"\n";
}
fout << "\t\t\t\tEntryPointSymbol=\""
<< (isWin32Executable ? "WinMainCRTStartup" : "mainACRTStartup")
<< "\"\n";
}