Files
CMake/Tests/RunCMake/Instrumentation/query/cmake-command-custom-content.cmake
T
Martin Duffy e6b37105ba instrumentation: Collect custom content from CMake configure
Add a `CUSTOM_CONTENT` argument to `cmake_instrumentation()` for collecting
custom content from configure time.

Snippet files include a reference to a JSON file containing any `CUSTOM_CONTENT`
that was added by this command.

Fixes: #26703
2025-08-21 07:20:12 -04:00

15 lines
405 B
CMake

string(JSON object SET {} key \"value\")
cmake_instrumentation(
API_VERSION 1
DATA_VERSION 1
CUSTOM_CONTENT nConfigure STRING "${N}"
CUSTOM_CONTENT myString STRING "string"
CUSTOM_CONTENT myList LIST "a;b;c"
CUSTOM_CONTENT myBool BOOL OFF
CUSTOM_CONTENT myObject JSON "${object}"
CUSTOM_CONTENT myInt JSON 1
CUSTOM_CONTENT myFloat JSON 2.5
CUSTOM_CONTENT myTrue JSON true
)