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:
Brad King 2006-03-16 18:24:26 -05:00
parent 0fa30e1a69
commit 94cc5898e7
1 changed files with 5 additions and 0 deletions

View File

@ -1324,6 +1324,11 @@ void cmGlobalGenerator::CreateDefaultGlobalTargets(cmTargets* targets)
// We are building CMake itself. We cannot use the original
// executable to install over itself.
cmd = mf->GetDefinition("EXECUTABLE_OUTPUT_PATH");
if(cmakeCfgIntDir && *cmakeCfgIntDir && cmakeCfgIntDir[0] != '.')
{
cmd += "/";
cmd += cmakeCfgIntDir;
}
cmd += "/cmake";
}
else