summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorMark Salisbury <mark.salisbury@hp.com>2013-02-13 16:48:32 (GMT)
committerBrad King <brad.king@kitware.com>2013-02-13 18:37:49 (GMT)
commitcf82d1e1669a00dee19c241da2207e0b8e65cfbf (patch)
treefeb263d8cb4c2911546599c4c0ce653eb2152433 /Source
parent8f4cae7aa6e00fb969828ba46326887d0dbcd72c (diff)
downloadCMake-cf82d1e1669a00dee19c241da2207e0b8e65cfbf.zip
CMake-cf82d1e1669a00dee19c241da2207e0b8e65cfbf.tar.gz
CMake-cf82d1e1669a00dee19c241da2207e0b8e65cfbf.tar.bz2
VS: Specify WinCE subsystems correctly in VS 9 2008
Diffstat (limited to 'Source')
-rw-r--r--Source/cmLocalVisualStudio7Generator.cxx20
1 files changed, 17 insertions, 3 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx
index 620e9b3..f07ebef 100644
--- a/Source/cmLocalVisualStudio7Generator.cxx
+++ b/Source/cmLocalVisualStudio7Generator.cxx
@@ -1136,7 +1136,14 @@ void cmLocalVisualStudio7Generator::OutputBuildTool(std::ostream& fout,
}
if(this->WindowsCEProject)
{
- fout << "\t\t\t\tSubSystem=\"9\"\n";
+ 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;
@@ -1227,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";
}