mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-06 14:19:59 -05:00
cmTargetPropCommandBase: Change the interface to return bool.
This is needed for the target_compile_features command, which may fail at configure time if an invalid feature is specified.
This commit is contained in:
@@ -51,7 +51,7 @@ std::string cmTargetCompileOptionsCommand
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
void cmTargetCompileOptionsCommand
|
||||
bool cmTargetCompileOptionsCommand
|
||||
::HandleDirectContent(cmTarget *tgt, const std::vector<std::string> &content,
|
||||
bool, bool)
|
||||
{
|
||||
@@ -59,4 +59,5 @@ void cmTargetCompileOptionsCommand
|
||||
this->Makefile->GetBacktrace(lfbt);
|
||||
cmValueWithOrigin entry(this->Join(content), lfbt);
|
||||
tgt->InsertCompileOption(entry);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user