mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-21 05:38:24 -05:00
7fec336bf7
Define `$<TARGET_EXISTS:a>` to `1` if `a` is an existed target name, else `0`.
4 lines
134 B
CMake
4 lines
134 B
CMake
cmake_policy(SET CMP0070 NEW)
|
|
add_custom_target(foo)
|
|
file(GENERATE OUTPUT TARGET_EXISTS-generated.txt CONTENT "$<TARGET_EXISTS:foo>")
|