From 94cc5898e71cf9b31c8d3b4ec26c82d1e85895a8 Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 16 Mar 2006 18:24:26 -0500 Subject: [PATCH] BUG: When generating the install rules for CMake itself the per-configuration subdirectory must be used to specify the executable location. --- Source/cmGlobalGenerator.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx index 3ceeb2ecd..289bf90c9 100644 --- a/Source/cmGlobalGenerator.cxx +++ b/Source/cmGlobalGenerator.cxx @@ -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