Files
CMake/Tests/RunCMake/Make/TargetMessages-validation.cmake
Marc Chevrier 2c71d051fa Makefiles Generators: use compiler for dependencies generation
Each source compilation generates a dependencies file. These dependencies
files are consolidated in one file per target. This consolidation is done
as part of command 'cmake -E cmake_depends` launched before evaluation of
makefile dependency graph.

The consolidation uses the same approach as `CMake` dependencies management.

Fixes: #21321
2020-11-29 15:25:42 +01: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()