瀏覽代碼

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

Brad King 19 年之前
父節點
當前提交
c21a61c91a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Source/cmGlobalGenerator.cxx

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