summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-06-06 09:51:33 -0400
committerBrad King <brad.king@kitware.com>2014-06-06 09:51:33 -0400
commit86be733fa589fc1755db9274a5606f71062a6c0f (patch)
tree3e7be91c4d9b4006fa06cf397488be7ac331e396
parent3495ab0a81a8f7404d69d94856245e266a568799 (diff)
downloadcmake-86be733fa589fc1755db9274a5606f71062a6c0f.tar.gz
cmGeneratorExpression: Add workaround for Borland compiler
-rw-r--r--Source/cmGeneratorExpression.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmGeneratorExpression.cxx b/Source/cmGeneratorExpression.cxx
index dea57e0e35..028d229675 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
}
//----------------------------------------------------------------------------