diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2014-05-23 18:59:11 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2014-06-05 16:44:18 (GMT) |
commit | a08292059eba4fdded6643b225640ebf559b2dac (patch) | |
tree | 59ca961e323ccf3256667181311b86b75c1b3968 /Source/cmGeneratorExpression.cxx | |
parent | efc205695de570c740285b38fbac701f77179ecb (diff) | |
download | CMake-a08292059eba4fdded6643b225640ebf559b2dac.zip CMake-a08292059eba4fdded6643b225640ebf559b2dac.tar.gz CMake-a08292059eba4fdded6643b225640ebf559b2dac.tar.bz2 |
genex: remove the need for backtraces
Rather than making dummy backtraces and passing them around, just make
backtraces optional.
Diffstat (limited to 'Source/cmGeneratorExpression.cxx')
-rw-r--r-- | Source/cmGeneratorExpression.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmGeneratorExpression.cxx b/Source/cmGeneratorExpression.cxx index d53bdd7..9a74569 100644 --- a/Source/cmGeneratorExpression.cxx +++ b/Source/cmGeneratorExpression.cxx @@ -24,7 +24,7 @@ //---------------------------------------------------------------------------- cmGeneratorExpression::cmGeneratorExpression( - cmListFileBacktrace const& backtrace): + cmListFileBacktrace const* backtrace): Backtrace(backtrace) { } @@ -34,9 +34,9 @@ cmsys::auto_ptr<cmCompiledGeneratorExpression> cmGeneratorExpression::Parse(std::string const& input) { return cmsys::auto_ptr<cmCompiledGeneratorExpression>( - new cmCompiledGeneratorExpression( - this->Backtrace, - input)); + new cmCompiledGeneratorExpression( + this->Backtrace ? *this->Backtrace : cmListFileBacktrace(), + input)); } //---------------------------------------------------------------------------- |