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>
|
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
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue