mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-29 02:19:18 -05:00
e6b37105ba
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
15 lines
405 B
CMake
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
|
|
)
|