summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2010-10-07 16:22:00 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2010-10-07 16:22:00 (GMT)
commitd4ee998b61cf3c16e9e04da2173490589790a894 (patch)
tree3faa5edace03e27babdcb7ede2c660ede3a4c4b2 /Source/cmMakefile.cxx
parenta267b99cd64a17781bf7af3fd6b53a4acb9c10ff (diff)
downloadCMake-d4ee998b61cf3c16e9e04da2173490589790a894.zip
CMake-d4ee998b61cf3c16e9e04da2173490589790a894.tar.gz
CMake-d4ee998b61cf3c16e9e04da2173490589790a894.tar.bz2
Hard-code the --no-warn-unused-cli flag
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index a4a79be..ed34569 100644
--- a/Source/cmMakefile.cxx
+++ b/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