From d4ee998b61cf3c16e9e04da2173490589790a894 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Thu, 7 Oct 2010 12:22:00 -0400 Subject: [PATCH] Hard-code the --no-warn-unused-cli flag --- Source/cmMakefile.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index a4a79befb..ed3456962 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