Fix compiler warning reported on older Borland dashboard.
Avoid assignment inside the if.
This commit is contained in:
parent
d90eed445f
commit
f66e735de3
|
@ -266,7 +266,8 @@ void cmDepends::SetIncludePathFromLanguage(const char* lang)
|
||||||
includePathVar += lang;
|
includePathVar += lang;
|
||||||
includePathVar += "_TARGET_INCLUDE_PATH";
|
includePathVar += "_TARGET_INCLUDE_PATH";
|
||||||
cmMakefile* mf = this->LocalGenerator->GetMakefile();
|
cmMakefile* mf = this->LocalGenerator->GetMakefile();
|
||||||
if(includePath = mf->GetDefinition(includePathVar.c_str()))
|
includePath = mf->GetDefinition(includePathVar.c_str());
|
||||||
|
if(includePath)
|
||||||
{
|
{
|
||||||
cmSystemTools::ExpandListArgument(includePath, this->IncludePath);
|
cmSystemTools::ExpandListArgument(includePath, this->IncludePath);
|
||||||
}
|
}
|
||||||
|
@ -276,7 +277,8 @@ void cmDepends::SetIncludePathFromLanguage(const char* lang)
|
||||||
includePathVar = "CMAKE_";
|
includePathVar = "CMAKE_";
|
||||||
includePathVar += lang;
|
includePathVar += lang;
|
||||||
includePathVar += "_INCLUDE_PATH";
|
includePathVar += "_INCLUDE_PATH";
|
||||||
if(includePath = mf->GetDefinition(includePathVar.c_str()))
|
includePath = mf->GetDefinition(includePathVar.c_str());
|
||||||
|
if(includePath)
|
||||||
{
|
{
|
||||||
cmSystemTools::ExpandListArgument(includePath, this->IncludePath);
|
cmSystemTools::ExpandListArgument(includePath, this->IncludePath);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue