cmGeneratorExpression: Add workaround for Borland compiler
This commit is contained in:
parent
3495ab0a81
commit
86be733fa5
|
@ -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
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue