diff options
author | Brad King <brad.king@kitware.com> | 2023-01-13 16:19:29 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-01-16 21:58:50 (GMT) |
commit | 9d9e8450a872a4a9ec1a74cc7a73df100c32c7e8 (patch) | |
tree | 0ccb5c395ecf839e8d3d8252a4df0ddd563221cc /Help/command/try_compile.rst | |
parent | 65ed5c2ca816f8ba4068b163a2dcdab079df0038 (diff) | |
download | CMake-9d9e8450a872a4a9ec1a74cc7a73df100c32c7e8.zip CMake-9d9e8450a872a4a9ec1a74cc7a73df100c32c7e8.tar.gz CMake-9d9e8450a872a4a9ec1a74cc7a73df100c32c7e8.tar.bz2 |
try_compile: Add optional LOG_DESCRIPTION to record in configure log
Issue: #23200
Diffstat (limited to 'Help/command/try_compile.rst')
-rw-r--r-- | Help/command/try_compile.rst | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Help/command/try_compile.rst b/Help/command/try_compile.rst index 52c0ae8..208be46 100644 --- a/Help/command/try_compile.rst +++ b/Help/command/try_compile.rst @@ -18,6 +18,7 @@ Try Compiling Whole Projects SOURCE_DIR <srcdir> [BINARY_DIR <bindir>] [TARGET <targetName>] + [LOG_DESCRIPTION <text>] [NO_CACHE] [CMAKE_FLAGS <flags>...] [OUTPUT_VARIABLE <var>]) @@ -47,6 +48,7 @@ which was present in older versions of CMake: try_compile(<resultVar> <bindir> <srcdir> <projectName> [<targetName>] + [LOG_DESCRIPTION <text>] [NO_CACHE] [CMAKE_FLAGS <flags>...] [OUTPUT_VARIABLE <var>]) @@ -63,6 +65,7 @@ Try Compiling Source Files SOURCE_FROM_CONTENT <name> <content> | SOURCE_FROM_VAR <name> <var> | SOURCE_FROM_FILE <name> <path> >... + [LOG_DESCRIPTION <text>] [NO_CACHE] [CMAKE_FLAGS <flags>...] [COMPILE_DEFINITIONS <defs>...] @@ -115,6 +118,7 @@ which was present in older versions of CMake: .. code-block:: cmake try_compile(<resultVar> <bindir> <srcfile|SOURCES srcfile...> + [LOG_DESCRIPTION <text>] [NO_CACHE] [CMAKE_FLAGS <flags>...] [COMPILE_DEFINITIONS <defs>...] @@ -171,6 +175,12 @@ The options are: set the :prop_tgt:`STATIC_LIBRARY_OPTIONS` target property in the generated project, depending on the :variable:`CMAKE_TRY_COMPILE_TARGET_TYPE` variable. +``LOG_DESCRIPTION <text>`` + .. versionadded:: 3.26 + + Specify a non-empty text description of the purpose of the check. + This is recorded in the :manual:`cmake-configure-log(7)` entry. + ``NO_CACHE`` .. versionadded:: 3.25 |