Files
Marc Chevrier e2a38a3990 GenEx SOURCE_PROPERTY
This feature is required for the support of the future feature of
pattern rules (see #27383).

But it is also a valuable addition in the context of custom command and target.
2026-01-21 16:03:30 +01:00

7 lines
128 B
CMake

enable_language(C)
add_library(foo foo.c)
file(GENERATE OUTPUT result.txt CONTENT "$<SOURCE_PROPERTY:foo.c,BAD_OPTION,FOO>")