mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 13:20:47 -06:00
cmMakefile::EnableLanguage() now deduplicates the languages argument and emits an author warning listing the languages that were defined multiple times in a single call. Fixes: #23596
11 lines
473 B
CMake
11 lines
473 B
CMake
if(NOT actual_stderr MATCHES "The following language has been specified multiple times: C\n")
|
|
set(RunCMake_TEST_FAILED "'LANGUAGES C C C' should report only 'C' and only once.")
|
|
endif()
|
|
|
|
if(NOT actual_stderr MATCHES "The following languages have been specified multiple times: C, CXX\n")
|
|
if(RunCMake_TEST_FAILED)
|
|
string(APPEND RunCMake_TEST_FAILED "\n")
|
|
endif()
|
|
string(APPEND RunCMake_TEST_FAILED "'LANGUAGES C C CXX CXX' should report 'C' and 'CXX'.")
|
|
endif()
|