summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-03-01 23:49:52 (GMT)
committerBrad King <brad.king@kitware.com>2006-03-01 23:49:52 (GMT)
commit007421e19c15bf53805ddc4075feb72e4ebfd797 (patch)
tree661dcb3e79fa7917a88c1e9672f7f34863c09a59 /Source/cmGlobalGenerator.cxx
parentb1b052fd23b8d5335d3db726fcd679ef30ff4ecd (diff)
downloadCMake-007421e19c15bf53805ddc4075feb72e4ebfd797.zip
CMake-007421e19c15bf53805ddc4075feb72e4ebfd797.tar.gz
CMake-007421e19c15bf53805ddc4075feb72e4ebfd797.tar.bz2
BUG: Check for whether to add BUILD_TYPE to install rule should check for a . in the first character not the second.
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r--Source/cmGlobalGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx
index b30d976..9a4815f 100644
--- a/Source/cmGlobalGenerator.cxx
+++ b/Source/cmGlobalGenerator.cxx
@@ -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");