Browse Source

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

Brad King 20 years ago
parent
commit
007421e19c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/cmGlobalGenerator.cxx

+ 1 - 1
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");