mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
Define `$<TARGET_EXISTS:a>` to `1` if `a` is an existed target name, else `0`.
3 lines
139 B
CMake
3 lines
139 B
CMake
cmake_policy(SET CMP0070 NEW)
|
|
file(GENERATE OUTPUT TARGET_EXISTS-not-a-target-generated.txt CONTENT "$<TARGET_EXISTS:just-random-string>")
|