Imported Upstream version 3.25.0
[platform/upstream/cmake.git] / Tests / RunCMake / project / LanguagesDuplicate-check.cmake
1 if(NOT actual_stderr MATCHES "The following language has been specified multiple times: C\n")
2   set(RunCMake_TEST_FAILED "'LANGUAGES C C C' should report only 'C' and only once.")
3 endif()
4
5 if(NOT actual_stderr MATCHES "The following languages have been specified multiple times: C, CXX\n")
6   if(RunCMake_TEST_FAILED)
7     string(APPEND RunCMake_TEST_FAILED "\n")
8   endif()
9   string(APPEND RunCMake_TEST_FAILED "'LANGUAGES C C CXX CXX' should report 'C' and 'CXX'.")
10 endif()