BUG: Check for whether to add BUILD_TYPE to install rule should check for a . in the first character not the second.

This commit is contained in:
Brad King 2006-03-01 18:49:52 -05:00
parent b1b052fd23
commit 007421e19c
1 changed files with 1 additions and 1 deletions

View File

@ -1338,7 +1338,7 @@ void cmGlobalGenerator::CreateDefaultGlobalTargets(cmTargets* targets)
cmd = cmakeCommand;
}
singleLine.push_back(cmd.c_str());
if ( cmakeCfgIntDir && *cmakeCfgIntDir && cmakeCfgIntDir[1] != '.' )
if ( cmakeCfgIntDir && *cmakeCfgIntDir && cmakeCfgIntDir[0] != '.' )
{
std::string cfgArg = "-DBUILD_TYPE=";
cfgArg += mf->GetDefinition("CMAKE_CFG_INTDIR");