summaryrefslogtreecommitdiff
path: root/Source/cmTargetCompileOptionsCommand.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-11-09 00:18:35 +0100
committerStephen Kelly <steveire@gmail.com>2014-04-07 18:11:18 +0200
commit4e6ca504459640ff39eac48eb62fcae95c8fc8d2 (patch)
treec0784d1596284903582ce64f5254ea4f159aa8dc /Source/cmTargetCompileOptionsCommand.cxx
parent5412deded1073e9a217c771ae24e8c5a8a581a96 (diff)
downloadcmake-4e6ca504459640ff39eac48eb62fcae95c8fc8d2.tar.gz
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.
Diffstat (limited to 'Source/cmTargetCompileOptionsCommand.cxx')
-rw-r--r--Source/cmTargetCompileOptionsCommand.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmTargetCompileOptionsCommand.cxx b/Source/cmTargetCompileOptionsCommand.cxx
index 254acc73d5..18499fd4e5 100644
--- a/Source/cmTargetCompileOptionsCommand.cxx
+++ b/Source/cmTargetCompileOptionsCommand.cxx
@@ -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;
}