浏览代码

Hard-code the --no-warn-unused-cli flag

Ben Boeckel 15 年之前
父节点
当前提交
d4ee998b61
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      Source/cmMakefile.cxx

+ 5 - 1
Source/cmMakefile.cxx

@@ -2810,7 +2810,11 @@ int cmMakefile::TryCompile(const char *srcdir, const char *bindir,
   // if cmake args were provided then pass them in
   if (cmakeArgs)
     {
-    cm.SetArgs(*cmakeArgs, true);
+    // FIXME: Workaround to ignore unused CLI variables until the
+    // 'ArgumentExpansion' test succeeds with CMAKE_STRICT on
+    cm.SetWarnUnusedCli(true);
+    //cm.SetArgs(*cmakeArgs, true);
+
     cm.SetCacheArgs(*cmakeArgs);
     }
   // to save time we pass the EnableLanguage info directly