mirror of
https://github.com/Kitware/CMake.git
synced 2025-12-30 18:29:37 -06:00
Merge branch 'no-cmake-self-install-when-cross-compiling' into release
This commit is contained in:
@@ -2362,7 +2362,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
|
||||
|
||||
Reference in New Issue
Block a user