mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-03 12:49:50 -05:00
Add STATIC_LIBRARY_FLAGS_<CONFIG> property (#10768)
This is a per-configuration version of STATIC_LIBRARY_FLAGS.
This commit is contained in:
@@ -915,7 +915,20 @@ void cmLocalVisualStudio7Generator::OutputBuildTool(std::ostream& fout,
|
||||
}
|
||||
fout << "\t\t\t<Tool\n"
|
||||
<< "\t\t\t\tName=\"" << tool << "\"\n";
|
||||
if(const char* libflags = target.GetProperty("STATIC_LIBRARY_FLAGS"))
|
||||
|
||||
std::string libflags;
|
||||
if(const char* flags = target.GetProperty("STATIC_LIBRARY_FLAGS"))
|
||||
{
|
||||
libflags += flags;
|
||||
}
|
||||
std::string libFlagsConfig = "STATIC_LIBRARY_FLAGS_";
|
||||
libFlagsConfig += configTypeUpper;
|
||||
if(const char* flagsConfig = target.GetProperty(libFlagsConfig.c_str()))
|
||||
{
|
||||
libflags += " ";
|
||||
libflags += flagsConfig;
|
||||
}
|
||||
if(!libflags.empty())
|
||||
{
|
||||
fout << "\t\t\t\tAdditionalOptions=\"" << libflags << "\"\n";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user