This reverts commit 9b90040edba1f89395295c27cd9919b0d5efd30b.
@@ -2810,7 +2810,6 @@ int cmMakefile::TryCompile(const char *srcdir, const char *bindir,
// if cmake args were provided then pass them in
if (cmakeArgs)
{
- cm.SetArgs(*cmakeArgs);
cm.SetCacheArgs(*cmakeArgs);
}
// to save time we pass the EnableLanguage info directly