summaryrefslogtreecommitdiff
path: root/Tests/RunCMake/Make/TargetMessages-validation.cmake
blob: f3d7af19828d72a09a4eeffaf95600915a6edfec (plain)
1
2
3
4
5
6
7
8
9
10

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()