1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-22 16:07:49 +08:00

Revert "Revert "When calling CMake, set the args and the cache""

This reverts commit ab5d4e43d9.
This commit is contained in:
Ben Boeckel
2010-10-05 12:27:37 -04:00
parent ab5d4e43d9
commit 367e5c37bb

View File

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