summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2006-02-24 22:35:35 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2006-02-24 22:35:35 (GMT)
commitc4156b4531668adc0dc9bf37f42758d6db03ff68 (patch)
tree37762d0fda6dadd103b9b4dc2f08facd77cffc35 /Source/cmGlobalGenerator.cxx
parent46757656011165aa8c857523c8770cd0ea80c3da (diff)
downloadCMake-c4156b4531668adc0dc9bf37f42758d6db03ff68.zip
CMake-c4156b4531668adc0dc9bf37f42758d6db03ff68.tar.gz
CMake-c4156b4531668adc0dc9bf37f42758d6db03ff68.tar.bz2
COMP: Even more global target fixes
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r--Source/cmGlobalGenerator.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx
index 525033d..d94a02e 100644
--- a/Source/cmGlobalGenerator.cxx
+++ b/Source/cmGlobalGenerator.cxx
@@ -1309,11 +1309,13 @@ void cmGlobalGenerator::CreateDefaultGlobalTargets(cmTargets* targets)
cmd = "$(CMAKE_COMMAND)";
}
singleLine.push_back(cmd.c_str());
- const char* cmakeCfgIntDir = mf->GetDefinition("CMAKE_CFG_INTDIR");
+ const char* cmakeCfgIntDir = this->GetCMakeCFGInitDirectory();
+ std::cout << "CMakeCFG: " << cmakeCfgIntDir << std::endl;
if ( cmakeCfgIntDir && *cmakeCfgIntDir && cmakeCfgIntDir[1] != '.' )
{
std::string cfgArg = "-DBUILD_TYPE=";
cfgArg += mf->GetDefinition("CMAKE_CFG_INTDIR");
+ singleLine.push_back(cfgArg);
}
singleLine.push_back("-P");
singleLine.push_back("cmake_install.cmake");