summaryrefslogtreecommitdiffstats
path: root/Source/cmCustomCommandGenerator.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-10-16 18:05:47 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-10-16 18:24:44 (GMT)
commited09f3b292bee34e8b30204c93ef5596a3124d00 (patch)
tree15ef1a2cc957729b4b5d56f907e57881a87c9d51 /Source/cmCustomCommandGenerator.cxx
parentbeff29f0d4bf1ffface0e6833f29f2f04ceccf0b (diff)
downloadCMake-ed09f3b292bee34e8b30204c93ef5596a3124d00.zip
CMake-ed09f3b292bee34e8b30204c93ef5596a3124d00.tar.gz
CMake-ed09f3b292bee34e8b30204c93ef5596a3124d00.tar.bz2
Use IsImported from cmGeneratorTarget.
Diffstat (limited to 'Source/cmCustomCommandGenerator.cxx')
-rw-r--r--Source/cmCustomCommandGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmCustomCommandGenerator.cxx b/Source/cmCustomCommandGenerator.cxx
index 8f7b480..dc06678 100644
--- a/Source/cmCustomCommandGenerator.cxx
+++ b/Source/cmCustomCommandGenerator.cxx
@@ -45,7 +45,7 @@ std::string cmCustomCommandGenerator::GetCommand(unsigned int c) const
cmGeneratorTarget* target =
this->LG->FindGeneratorTargetToUse(argv0);
if(target && target->GetType() == cmState::EXECUTABLE &&
- (target->Target->IsImported()
+ (target->IsImported()
|| !this->LG->GetMakefile()->IsOn("CMAKE_CROSSCOMPILING")))
{
return target->GetLocation(this->Config);