mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
Define `$<TARGET_NAME_IF_EXISTS:tgt>` to mean `tgt` if the target exists and otherwise an empty string.
6 lines
212 B
CMake
6 lines
212 B
CMake
file(READ "${RunCMake_TEST_BINARY_DIR}/TARGET_NAME_IF_EXISTS-not-a-target-generated.txt" content)
|
|
|
|
if(content)
|
|
set(RunCMake_TEST_FAILED "actual content:\n [[${content}]]\nbut expected an empty string")
|
|
endif()
|