diff options
author | Matthew Woehlke <matthew.woehlke@kitware.com> | 2022-09-28 17:41:11 (GMT) |
---|---|---|
committer | Matthew Woehlke <matthew.woehlke@kitware.com> | 2022-09-28 17:41:11 (GMT) |
commit | 09b30515247b95358fa9126ce76e35f2d177c241 (patch) | |
tree | 6f629179462e2601bcd80e91ff297ced963f3ddf /Source/cmCoreTryCompile.h | |
parent | 164a156c7c26aaf4f30e73ae0cdb6d2e8a10e0a4 (diff) | |
download | CMake-09b30515247b95358fa9126ce76e35f2d177c241.zip CMake-09b30515247b95358fa9126ce76e35f2d177c241.tar.gz CMake-09b30515247b95358fa9126ce76e35f2d177c241.tar.bz2 |
try_compile: Add NO_CACHE option (also try_run)
Add NO_CACHE option to try_compile and try_run, which places the results
in regular, rather than cache, variables.
Issue: #22799
Diffstat (limited to 'Source/cmCoreTryCompile.h')
-rw-r--r-- | Source/cmCoreTryCompile.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmCoreTryCompile.h b/Source/cmCoreTryCompile.h index 3f4a4dc..d4c9466 100644 --- a/Source/cmCoreTryCompile.h +++ b/Source/cmCoreTryCompile.h @@ -58,6 +58,7 @@ public: cm::optional<std::string> OutputVariable; cm::optional<std::string> CopyFileTo; cm::optional<std::string> CopyFileError; + bool NoCache = false; // Argument for try_run only. // Keep in sync with warnings in cmCoreTryCompile::ParseArgs. |