mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-21 14:40:48 +08:00
Hard-code the --no-warn-unused-cli flag
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user