mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-21 13:48:33 -05:00
7fec336bf7
Define `$<TARGET_EXISTS:a>` to `1` if `a` is an existed target name, else `0`.
7 lines
234 B
CMake
7 lines
234 B
CMake
file(READ "${RunCMake_TEST_BINARY_DIR}/TARGET_EXISTS-generated.txt" content)
|
|
|
|
set(expected "1")
|
|
if(NOT content STREQUAL expected)
|
|
set(RunCMake_TEST_FAILED "actual content:\n [[${content}]]\nbut expected:\n [[${expected}]]")
|
|
endif()
|