mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
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.
7 lines
131 B
CMake
7 lines
131 B
CMake
|
|
enable_language(C)
|
|
|
|
add_library(foo foo.c)
|
|
|
|
file(GENERATE OUTPUT result.txt CONTENT "$<SOURCE_PROPERTY:foo.c,DIRECTORY:foo,FOO>")
|