mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
Introduce "binding operations": generator expressions that evaluate a <body> once for each value they supply, with $<_0> expanding to that value. This is the foundation the $<LIST:TRANSFORM,...,APPLY> action and the predicate selectors build on, letting a <body> refer to the element being processed. Using $<_0> outside a binding operation is reported as an error rather than silently expanding to nothing. Issue: #27892
2 lines
76 B
CMake
2 lines
76 B
CMake
file(GENERATE OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/bad.txt" CONTENT "$<_0>")
|