mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-01 04:03:24 +03:00
ENH: Properly build WIN32 executables
This commit is contained in:
1 parent
f93b1e6d48
commit
c7067f426f
1 file changed
+3
-3
@@ -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";
|
||||
|
||||
Reference in new issue
Block a user