You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cmake/Tests/RunCMake/project/LanguagesDuplicate.cmake

12 lines
282 B

cmake_policy(SET CMP0057 NEW)
project(ProjectA C C C)
project(ProjectB C C CXX CXX)
get_property(langs GLOBAL PROPERTY ENABLED_LANGUAGES)
foreach(lang C CXX)
if(NOT lang IN_LIST langs)
message(FATAL_ERROR "Expected language '${lang}' to be enabled.")
endif()
endforeach()