mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-05 13:50:10 -05:00
use CM_NULLPTR
This commit is contained in:
committed by
Brad King
parent
b4b73f56a2
commit
1d6909a287
@@ -45,7 +45,7 @@ bool cmCustomCommandGenerator::UseCrossCompilingEmulator(unsigned int c) const
|
||||
std::string const& argv0 = this->CC.GetCommandLines()[c][0];
|
||||
cmGeneratorTarget* target = this->LG->FindGeneratorTargetToUse(argv0);
|
||||
if (target && target->GetType() == cmState::EXECUTABLE) {
|
||||
return target->GetProperty("CROSSCOMPILING_EMULATOR") != 0;
|
||||
return target->GetProperty("CROSSCOMPILING_EMULATOR") != CM_NULLPTR;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user