diff options
Diffstat (limited to 'Tests/CMakeOnly/CheckLanguage/CMakeLists.txt')
-rw-r--r-- | Tests/CMakeOnly/CheckLanguage/CMakeLists.txt | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Tests/CMakeOnly/CheckLanguage/CMakeLists.txt b/Tests/CMakeOnly/CheckLanguage/CMakeLists.txt index ca4becb77b..e9bdf6ab68 100644 --- a/Tests/CMakeOnly/CheckLanguage/CMakeLists.txt +++ b/Tests/CMakeOnly/CheckLanguage/CMakeLists.txt @@ -5,10 +5,19 @@ include(CheckLanguage) set(langs ) set(expect_C 1) set(expect_CXX 1) +if(APPLE) + set(expect_OBJC 1) +endif() unset(expect_Fortran) set(expect_NoSuchLanguage 0) -foreach(lang C CXX Fortran CUDA NoSuchLanguage) +set(LANGUAGES C CXX Fortran CUDA NoSuchLanguage) + +if(APPLE) + list(APPEND LANGUAGES OBJC) +endif() + +foreach(lang ${LANGUAGES}) check_language(${lang}) if(NOT DEFINED CMAKE_${lang}_COMPILER) message(FATAL_ERROR "check_language(${lang}) did not set result") |