summaryrefslogtreecommitdiffstats
path: root/Help/command/try_run.rst
diff options
context:
space:
mode:
authorMatthew Woehlke <matthew.woehlke@kitware.com>2022-09-28 17:41:11 (GMT)
committerMatthew Woehlke <matthew.woehlke@kitware.com>2022-09-28 17:41:11 (GMT)
commit09b30515247b95358fa9126ce76e35f2d177c241 (patch)
tree6f629179462e2601bcd80e91ff297ced963f3ddf /Help/command/try_run.rst
parent164a156c7c26aaf4f30e73ae0cdb6d2e8a10e0a4 (diff)
downloadCMake-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 'Help/command/try_run.rst')
-rw-r--r--Help/command/try_run.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Help/command/try_run.rst b/Help/command/try_run.rst
index efc10ec..8393e1b 100644
--- a/Help/command/try_run.rst
+++ b/Help/command/try_run.rst
@@ -17,6 +17,7 @@ Try Compiling and Running Source Files
SOURCE_FROM_ARG <name> <content>] |
SOURCE_FROM_VAR <name> <var>] |
SOURCE_FROM_FILE <name> <path> >...
+ [NO_CACHE]
[CMAKE_FLAGS <flags>...]
[COMPILE_DEFINITIONS <defs>...]
[LINK_OPTIONS <options>...]
@@ -54,6 +55,7 @@ which was present in older versions of CMake:
try_run(<runResultVar> <compileResultVar>
<bindir> <srcfile|SOURCES srcfile...>
+ [NO_CACHE]
[CMAKE_FLAGS <flags>...]
[COMPILE_DEFINITIONS <defs>...]
[LINK_OPTIONS <options>...]