cmGeneratorExpression: Add workaround for Borland compiler

This commit is contained in:
Brad King 2014-06-06 09:51:33 -04:00
parent 3495ab0a81
commit 86be733fa5
1 changed files with 8 additions and 0 deletions

View File

@ -33,10 +33,18 @@ cmGeneratorExpression::cmGeneratorExpression(
cmsys::auto_ptr<cmCompiledGeneratorExpression> cmsys::auto_ptr<cmCompiledGeneratorExpression>
cmGeneratorExpression::Parse(std::string const& input) cmGeneratorExpression::Parse(std::string const& input)
{ {
#if !defined(__BORLANDC__)
return cmsys::auto_ptr<cmCompiledGeneratorExpression>( return cmsys::auto_ptr<cmCompiledGeneratorExpression>(
new cmCompiledGeneratorExpression( new cmCompiledGeneratorExpression(
this->Backtrace ? *this->Backtrace : cmListFileBacktrace(NULL), this->Backtrace ? *this->Backtrace : cmListFileBacktrace(NULL),
input)); input));
#else
cmListFileBacktrace emptyBacktrace(NULL);
return cmsys::auto_ptr<cmCompiledGeneratorExpression>(
new cmCompiledGeneratorExpression(
this->Backtrace ? *this->Backtrace : emptyBacktrace,
input));
#endif
} }
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------