diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-03-09 17:31:08 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-03-09 17:31:08 (GMT) |
commit | c7067f426f208c7ce8bc5679bbdfd3e45745efd3 (patch) | |
tree | 0a26fcd98bf8abe58c9a0fa9fe8c5a12feefe4e0 /Source/cmLocalVisualStudio7Generator.cxx | |
parent | f93b1e6d48ad3a1abe09f8bdbb450a28e788d1cf (diff) | |
download | CMake-c7067f426f208c7ce8bc5679bbdfd3e45745efd3.zip CMake-c7067f426f208c7ce8bc5679bbdfd3e45745efd3.tar.gz CMake-c7067f426f208c7ce8bc5679bbdfd3e45745efd3.tar.bz2 |
ENH: Properly build WIN32 executables
Diffstat (limited to 'Source/cmLocalVisualStudio7Generator.cxx')
-rw-r--r-- | Source/cmLocalVisualStudio7Generator.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx index f79d689..4b289b0 100644 --- a/Source/cmLocalVisualStudio7Generator.cxx +++ b/Source/cmLocalVisualStudio7Generator.cxx @@ -604,13 +604,13 @@ void cmLocalVisualStudio7Generator::OutputBuildTool(std::ostream& fout, { fout << "\t\t\t\tGenerateDebugInformation=\"TRUE\"\n"; } - if( target.GetType() == cmTarget::EXECUTABLE) + if ( target.GetPropertyAsBool("WIN32_EXECUTABLE") ) { - fout << "\t\t\t\tSubSystem=\"1\"\n"; + fout << "\t\t\t\tSubSystem=\"2\"\n"; } else { - fout << "\t\t\t\tSubSystem=\"2\"\n"; + fout << "\t\t\t\tSubSystem=\"1\"\n"; } fout << "\t\t\t\tStackReserveSize=\"" << m_Makefile->GetDefinition("CMAKE_CXX_STACK_SIZE") << "\"/>\n"; |