summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-11-14 15:56:39 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-11-14 15:56:39 (GMT)
commit810ef59a423704bea0804ef97c5ce5c420b38025 (patch)
tree7178ab88704c2655ee4ed1b686f57d8a14556f9c /Source/cmGlobalGenerator.cxx
parent2531c0aa09522c7f6c07bcdc33d0dc8e778a219d (diff)
parent15f55cca5971c93b1b6c950b9b7ca5a398140957 (diff)
downloadCMake-810ef59a423704bea0804ef97c5ce5c420b38025.zip
CMake-810ef59a423704bea0804ef97c5ce5c420b38025.tar.gz
CMake-810ef59a423704bea0804ef97c5ce5c420b38025.tar.bz2
Merge topic 'no-cmake-self-install-when-cross-compiling'
15f55cca Do not use just-built CMake to install itself when cross-compiling (#15248)
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r--Source/cmGlobalGenerator.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx
index ab9dc88..5a3c238 100644
--- a/Source/cmGlobalGenerator.cxx
+++ b/Source/cmGlobalGenerator.cxx
@@ -2372,7 +2372,8 @@ void cmGlobalGenerator::CreateDefaultGlobalTargets(cmTargets* targets)
depends.push_back(this->GetAllTargetName());
}
}
- if(mf->GetDefinition("CMake_BINARY_DIR"))
+ if(mf->GetDefinition("CMake_BINARY_DIR") &&
+ !mf->IsOn("CMAKE_CROSSCOMPILING"))
{
// We are building CMake itself. We cannot use the original
// executable to install over itself. The generator will