cmake/Tests/RunCMake/Make/TargetMessages-validation.cmake
2021-09-14 00:13:48 +02:00

11 lines
331 B
CMake

if (CHECK_TARGET_MESSAGES)
if (NOT actual_stdout MATCHES "Built target CustomTarget")
set (RunCMake_TEST_FAILED "Not found expected 'Built target' message.")
endif()
else()
if (actual_stdout MATCHES "Built target CustomTarget")
set (RunCMake_TEST_FAILED "Found unexpected 'Built target' message.")
endif()
endif()