diff options
author | Brad King <brad.king@kitware.com> | 2014-06-06 13:51:33 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-06-06 13:51:33 (GMT) |
commit | 86be733fa589fc1755db9274a5606f71062a6c0f (patch) | |
tree | 3e7be91c4d9b4006fa06cf397488be7ac331e396 /Source/cmGeneratorExpression.cxx | |
parent | 3495ab0a81a8f7404d69d94856245e266a568799 (diff) | |
download | CMake-86be733fa589fc1755db9274a5606f71062a6c0f.zip CMake-86be733fa589fc1755db9274a5606f71062a6c0f.tar.gz CMake-86be733fa589fc1755db9274a5606f71062a6c0f.tar.bz2 |
cmGeneratorExpression: Add workaround for Borland compiler
Diffstat (limited to 'Source/cmGeneratorExpression.cxx')
-rw-r--r-- | Source/cmGeneratorExpression.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmGeneratorExpression.cxx b/Source/cmGeneratorExpression.cxx index dea57e0..028d229 100644 --- a/Source/cmGeneratorExpression.cxx +++ b/Source/cmGeneratorExpression.cxx @@ -33,10 +33,18 @@ cmGeneratorExpression::cmGeneratorExpression( cmsys::auto_ptr<cmCompiledGeneratorExpression> cmGeneratorExpression::Parse(std::string const& input) { +#if !defined(__BORLANDC__) return cmsys::auto_ptr<cmCompiledGeneratorExpression>( new cmCompiledGeneratorExpression( this->Backtrace ? *this->Backtrace : cmListFileBacktrace(NULL), input)); +#else + cmListFileBacktrace emptyBacktrace(NULL); + return cmsys::auto_ptr<cmCompiledGeneratorExpression>( + new cmCompiledGeneratorExpression( + this->Backtrace ? *this->Backtrace : emptyBacktrace, + input)); +#endif } //---------------------------------------------------------------------------- |