BUG: When generating the install rules for CMake itself the per-configuration subdirectory must be used to specify the executable location.
This commit is contained in:
parent
0fa30e1a69
commit
94cc5898e7
|
@ -1324,6 +1324,11 @@ void cmGlobalGenerator::CreateDefaultGlobalTargets(cmTargets* targets)
|
||||||
// We are building CMake itself. We cannot use the original
|
// We are building CMake itself. We cannot use the original
|
||||||
// executable to install over itself.
|
// executable to install over itself.
|
||||||
cmd = mf->GetDefinition("EXECUTABLE_OUTPUT_PATH");
|
cmd = mf->GetDefinition("EXECUTABLE_OUTPUT_PATH");
|
||||||
|
if(cmakeCfgIntDir && *cmakeCfgIntDir && cmakeCfgIntDir[0] != '.')
|
||||||
|
{
|
||||||
|
cmd += "/";
|
||||||
|
cmd += cmakeCfgIntDir;
|
||||||
|
}
|
||||||
cmd += "/cmake";
|
cmd += "/cmake";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue