mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
Add a new APPLY action to list(TRANSFORM) that invokes a user-defined function or macro for each element of the list, enabling arbitrary per-element transformations. The callable receives the current element value and an output variable name, and must set the output variable in PARENT_SCOPE to the transformed value. Includes documentation, release notes, and tests for both function and macro callables, OUTPUT_VARIABLE, error cases, and selector combinations (AT, FOR, REGEX). Refs: #27761
6 lines
240 B
Plaintext
6 lines
240 B
Plaintext
^CMake Error at TRANSFORM-APPLY-NoOutput\.cmake:6 \(list\):
|
|
list sub-command TRANSFORM, action APPLY: function "my_bad_transform" did
|
|
not set the output variable\.
|
|
Call Stack \(most recent call first\):
|
|
CMakeLists\.txt:3 \(include\)$
|