BUG: Check for whether to add -C to package rule should check for a . in the first character not the second.

This commit is contained in:
Brad King 2006-03-07 14:38:52 -05:00
parent e82de6a5d5
commit c21a61c91a
1 changed files with 1 additions and 1 deletions

View File

@ -1217,7 +1217,7 @@ void cmGlobalGenerator::CreateDefaultGlobalTargets(cmTargets* targets)
singleLine.erase(singleLine.begin(), singleLine.end());
depends.erase(depends.begin(), depends.end());
singleLine.push_back(this->GetCMakeInstance()->GetCPackCommand());
if ( cmakeCfgIntDir && *cmakeCfgIntDir && cmakeCfgIntDir[1] != '.' )
if ( cmakeCfgIntDir && *cmakeCfgIntDir && cmakeCfgIntDir[0] != '.' )
{
singleLine.push_back("-C");
singleLine.push_back(mf->GetDefinition("CMAKE_CFG_INTDIR"));