summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalVisualStudio7Generator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2010-11-09 22:48:18 (GMT)
committerBrad King <brad.king@kitware.com>2010-11-09 22:48:18 (GMT)
commit3d79e7d58ca0ebb63ffaba4ed16c1ea8c6bcf91d (patch)
tree709a3d8ff0dd8c8a9597433d44cea949d61790ca /Source/cmLocalVisualStudio7Generator.cxx
parent20f49730ae53576812c9661aa6355d83f02cffde (diff)
downloadCMake-3d79e7d58ca0ebb63ffaba4ed16c1ea8c6bcf91d.zip
CMake-3d79e7d58ca0ebb63ffaba4ed16c1ea8c6bcf91d.tar.gz
CMake-3d79e7d58ca0ebb63ffaba4ed16c1ea8c6bcf91d.tar.bz2
Fix Intel .vfproj SubSystem attribute values
The SubSystem attribute value must be "subSystemConsole" or "subSystemWindows", not "1" or "2". Commit 20f49730 (Reset platform/compiler info status for each language, 2010-09-28) exposed this bug by (correctly) passing the /libs:dll flag to the compiler, which chokes the linker if a value for "/subsystem:" is not given.
Diffstat (limited to 'Source/cmLocalVisualStudio7Generator.cxx')
-rw-r--r--Source/cmLocalVisualStudio7Generator.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx
index cb34bb6..ffe26b1 100644
--- a/Source/cmLocalVisualStudio7Generator.cxx
+++ b/Source/cmLocalVisualStudio7Generator.cxx
@@ -1098,11 +1098,13 @@ void cmLocalVisualStudio7Generator::OutputBuildTool(std::ostream& fout,
}
if ( target.GetPropertyAsBool("WIN32_EXECUTABLE") )
{
- fout << "\t\t\t\tSubSystem=\"2\"\n";
+ fout << "\t\t\t\tSubSystem=\""
+ << (this->FortranProject? "subSystemWindows" : "2") << "\"\n";
}
else
{
- fout << "\t\t\t\tSubSystem=\"1\"\n";
+ fout << "\t\t\t\tSubSystem=\""
+ << (this->FortranProject? "subSystemConsole" : "1") << "\"\n";
}
std::string stackVar = "CMAKE_";
stackVar += linkLanguage;