summaryrefslogtreecommitdiffstats
path: root/Help
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-01-30 21:09:56 (GMT)
committerBrad King <brad.king@kitware.com>2023-02-01 14:32:42 (GMT)
commit5252c885693ce35467f6c4c7fdc8deb6406df149 (patch)
tree35704c91a461029b32411307789d096df0a52a10 /Help
parent0a48d8fe5ccf8a44bcada7b528f4cf4dd591b18e (diff)
downloadCMake-5252c885693ce35467f6c4c7fdc8deb6406df149.zip
CMake-5252c885693ce35467f6c4c7fdc8deb6406df149.tar.gz
CMake-5252c885693ce35467f6c4c7fdc8deb6406df149.tar.bz2
try_compile: Record propagated CMake variables in configure log
These provide more detailed information about how the test project was configured. Issue: #23200
Diffstat (limited to 'Help')
-rw-r--r--Help/manual/cmake-configure-log.7.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/Help/manual/cmake-configure-log.7.rst b/Help/manual/cmake-configure-log.7.rst
index a9c185d..72d4093 100644
--- a/Help/manual/cmake-configure-log.7.rst
+++ b/Help/manual/cmake-configure-log.7.rst
@@ -190,6 +190,8 @@ A ``try_compile-v1`` event is a YAML mapping:
directories:
source: "/path/to/.../TryCompile-01234"
binary: "/path/to/.../TryCompile-01234"
+ cmakeVariables:
+ SOME_VARIABLE: "Some Value"
buildResult:
variable: "COMPILE_RESULT"
cached: true
@@ -217,6 +219,12 @@ The keys specific to ``try_compile-v1`` mappings are:
For non-project invocations, this is often the same as
the source directory.
+``cmakeVariables``
+ An optional key that is present when CMake propagates variables
+ into the test project, either automatically or due to the
+ :variable:`CMAKE_TRY_COMPILE_PLATFORM_VARIABLES` variable.
+ Its value is a mapping from variable names to their values.
+
``buildResult``
A mapping describing the result of compiling the test code.
It has the following keys: