mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 12:49:36 -06:00
VS10: Honor user-specified /SUBSYSTEM: flag (#14326)
Use the WIN32_EXECUTABLE target property only to set the SubSystem build attribute default. When user-specified flags are later parsed they may then override it.
This commit is contained in:
@@ -1520,11 +1520,11 @@ cmVisualStudio10TargetGenerator::ComputeLinkOptions(std::string const& config)
|
||||
}
|
||||
if ( this->Target->GetPropertyAsBool("WIN32_EXECUTABLE") )
|
||||
{
|
||||
flags += " /SUBSYSTEM:WINDOWS";
|
||||
linkOptions.AddFlag("SubSystem", "Windows");
|
||||
}
|
||||
else
|
||||
{
|
||||
flags += " /SUBSYSTEM:CONSOLE";
|
||||
linkOptions.AddFlag("SubSystem", "Console");
|
||||
}
|
||||
std::string standardLibsVar = "CMAKE_";
|
||||
standardLibsVar += linkLanguage;
|
||||
|
||||
Reference in New Issue
Block a user