summaryrefslogtreecommitdiffstats
path: root/Help/command
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-01-16 16:49:35 (GMT)
committerBrad King <brad.king@kitware.com>2023-01-16 22:16:12 (GMT)
commitd4bf7d80c618930e6b88c35d271a5b0a0656bb7b (patch)
treefb9e5883e8fef2d96a3d1168946a9ad527658014 /Help/command
parent9d9e8450a872a4a9ec1a74cc7a73df100c32c7e8 (diff)
downloadCMake-d4bf7d80c618930e6b88c35d271a5b0a0656bb7b.zip
CMake-d4bf7d80c618930e6b88c35d271a5b0a0656bb7b.tar.gz
CMake-d4bf7d80c618930e6b88c35d271a5b0a0656bb7b.tar.bz2
try_compile: Add a NO_LOG option to skip recording in the configure log
Diffstat (limited to 'Help/command')
-rw-r--r--Help/command/try_compile.rst9
-rw-r--r--Help/command/try_run.rst2
2 files changed, 11 insertions, 0 deletions
diff --git a/Help/command/try_compile.rst b/Help/command/try_compile.rst
index 208be46..8f6a4eb 100644
--- a/Help/command/try_compile.rst
+++ b/Help/command/try_compile.rst
@@ -20,6 +20,7 @@ Try Compiling Whole Projects
[TARGET <targetName>]
[LOG_DESCRIPTION <text>]
[NO_CACHE]
+ [NO_LOG]
[CMAKE_FLAGS <flags>...]
[OUTPUT_VARIABLE <var>])
@@ -50,6 +51,7 @@ which was present in older versions of CMake:
<projectName> [<targetName>]
[LOG_DESCRIPTION <text>]
[NO_CACHE]
+ [NO_LOG]
[CMAKE_FLAGS <flags>...]
[OUTPUT_VARIABLE <var>])
@@ -67,6 +69,7 @@ Try Compiling Source Files
SOURCE_FROM_FILE <name> <path> >...
[LOG_DESCRIPTION <text>]
[NO_CACHE]
+ [NO_LOG]
[CMAKE_FLAGS <flags>...]
[COMPILE_DEFINITIONS <defs>...]
[LINK_OPTIONS <options>...]
@@ -120,6 +123,7 @@ which was present in older versions of CMake:
try_compile(<resultVar> <bindir> <srcfile|SOURCES srcfile...>
[LOG_DESCRIPTION <text>]
[NO_CACHE]
+ [NO_LOG]
[CMAKE_FLAGS <flags>...]
[COMPILE_DEFINITIONS <defs>...]
[LINK_OPTIONS <options>...]
@@ -201,6 +205,11 @@ The options are:
the test is part of a larger inspection), ``NO_CACHE`` may be useful to avoid
leaking the intermediate result variable into the cache.
+``NO_LOG``
+ .. versionadded:: 3.26
+
+ Do not record a :manual:`cmake-configure-log(7)` entry for this call.
+
``OUTPUT_VARIABLE <var>``
Store the output from the build process in the given variable.
diff --git a/Help/command/try_run.rst b/Help/command/try_run.rst
index ab4742e..ef8ec96 100644
--- a/Help/command/try_run.rst
+++ b/Help/command/try_run.rst
@@ -19,6 +19,7 @@ Try Compiling and Running Source Files
SOURCE_FROM_FILE <name> <path> >...
[LOG_DESCRIPTION <text>]
[NO_CACHE]
+ [NO_LOG]
[CMAKE_FLAGS <flags>...]
[COMPILE_DEFINITIONS <defs>...]
[LINK_OPTIONS <options>...]
@@ -58,6 +59,7 @@ which was present in older versions of CMake:
<bindir> <srcfile|SOURCES srcfile...>
[LOG_DESCRIPTION <text>]
[NO_CACHE]
+ [NO_LOG]
[CMAKE_FLAGS <flags>...]
[COMPILE_DEFINITIONS <defs>...]
[LINK_OPTIONS <options>...]