blob: f0237abbe765759d90e80861c005f1368608b389 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
if (NOT DEFINED VALID_LANG)
set (VALID_LANG C)
endif()
if (NOT DEFINED INVALID_LANG)
set (INVALID_LANG CXX)
endif()
if (NOT actual_stdout MATCHES "BADFLAG_${VALID_LANG}_LANG")
set (RunCMake_TEST_FAILED "Not found expected 'BADFLAG_${VALID_LANG}_LANG'.")
endif()
if (actual_stdout MATCHES "BADFLAG_${INVALID_LANG}_LANG")
if (RunCMake_TEST_FAILED)
string (APPEND RunCMake_TEST_FAILED "\n")
endif()
string (APPEND RunCMake_TEST_FAILED "Found unexpected 'BADFLAG_${INVALID_LANG}_LANG'.")
endif()
|