summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorExpression.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-06-06 13:51:33 (GMT)
committerBrad King <brad.king@kitware.com>2014-06-06 13:51:33 (GMT)
commit86be733fa589fc1755db9274a5606f71062a6c0f (patch)
tree3e7be91c4d9b4006fa06cf397488be7ac331e396 /Source/cmGeneratorExpression.cxx
parent3495ab0a81a8f7404d69d94856245e266a568799 (diff)
downloadCMake-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.cxx8
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
}
//----------------------------------------------------------------------------