diff options
author | Brad King <brad.king@kitware.com> | 2010-12-08 18:32:09 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2010-12-15 19:53:39 (GMT) |
commit | ef9e9de0b80a08bb9290fce3816ff621d2ff3419 (patch) | |
tree | 577266411f6d37996a14e4b09d91c516c7b9f1ec /Source/cmGeneratorExpression.cxx | |
parent | 45e1953c4037d4492668651ae3bbfd6a4a875bc1 (diff) | |
download | CMake-ef9e9de0b80a08bb9290fce3816ff621d2ff3419.zip CMake-ef9e9de0b80a08bb9290fce3816ff621d2ff3419.tar.gz CMake-ef9e9de0b80a08bb9290fce3816ff621d2ff3419.tar.bz2 |
Optionally suppress errors in cmGeneratorExpression
Diffstat (limited to 'Source/cmGeneratorExpression.cxx')
-rw-r--r-- | Source/cmGeneratorExpression.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/cmGeneratorExpression.cxx b/Source/cmGeneratorExpression.cxx index a61880f..971cad2 100644 --- a/Source/cmGeneratorExpression.cxx +++ b/Source/cmGeneratorExpression.cxx @@ -17,8 +17,8 @@ //---------------------------------------------------------------------------- cmGeneratorExpression::cmGeneratorExpression( cmMakefile* mf, const char* config, - cmListFileBacktrace const& backtrace): - Makefile(mf), Config(config), Backtrace(backtrace) + cmListFileBacktrace const& backtrace, bool quiet): + Makefile(mf), Config(config), Backtrace(backtrace), Quiet(quiet) { this->TargetInfo.compile("^\\$<TARGET" "(|_SONAME|_LINKER)" // File with what purpose? @@ -87,7 +87,7 @@ bool cmGeneratorExpression::Evaluate() this->Data.insert(this->Data.end(), result.begin(), result.end()); return true; } - else + else if(!this->Quiet) { // Failure. Report the error message. cmOStringStream e; @@ -99,6 +99,7 @@ bool cmGeneratorExpression::Evaluate() this->Backtrace); return false; } + return true; } //---------------------------------------------------------------------------- |