summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-03-07 19:38:52 (GMT)
committerBrad King <brad.king@kitware.com>2006-03-07 19:38:52 (GMT)
commitc21a61c91a2b847df782712d7f90e58df77fa341 (patch)
tree65ba7b1e7d73cbdc4f010026a4d47651c5555e1c /Source
parente82de6a5d5ed018373ec3d15949841d466527ef3 (diff)
downloadCMake-c21a61c91a2b847df782712d7f90e58df77fa341.zip
CMake-c21a61c91a2b847df782712d7f90e58df77fa341.tar.gz
CMake-c21a61c91a2b847df782712d7f90e58df77fa341.tar.bz2
BUG: Check for whether to add -C to package rule should check for a . in the first character not the second.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmGlobalGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx
index 59bef9e..f97e83a 100644
--- a/Source/cmGlobalGenerator.cxx
+++ b/Source/cmGlobalGenerator.cxx
@@ -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"));