summaryrefslogtreecommitdiffstats
path: root/.gitlab/ci/configure_fedora37_common_clang.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-11-16 18:59:44 (GMT)
committerBrad King <brad.king@kitware.com>2022-11-18 14:13:51 (GMT)
commit99370e990ead426661170cef2e7299059e6120c9 (patch)
treebd12bc63c49418bb2b7a8117659f908fe8fcbf59 /.gitlab/ci/configure_fedora37_common_clang.cmake
parent572679a62e835833e7989630d77ab2e9802b1485 (diff)
downloadCMake-99370e990ead426661170cef2e7299059e6120c9.zip
CMake-99370e990ead426661170cef2e7299059e6120c9.tar.gz
CMake-99370e990ead426661170cef2e7299059e6120c9.tar.bz2
gitlab-ci: add jobs to test with Clang and LLVMFlang on Fedora
We already have `t:debian10-{makefiles,ninja}-clang` jobs covering old versions of Clang with Makefile and Ninja generators. Complement them with new `t:fedora37-{makefiles,ninja}-clang` jobs covering recent versions of Clang. Fedora 37 now packages LLVMFlang, so enable Fortran tests with that compiler too. Issue: #22387
Diffstat (limited to '.gitlab/ci/configure_fedora37_common_clang.cmake')
-rw-r--r--.gitlab/ci/configure_fedora37_common_clang.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/.gitlab/ci/configure_fedora37_common_clang.cmake b/.gitlab/ci/configure_fedora37_common_clang.cmake
new file mode 100644
index 0000000..70c9df9
--- /dev/null
+++ b/.gitlab/ci/configure_fedora37_common_clang.cmake
@@ -0,0 +1,6 @@
+set(CMAKE_Fortran_COMPILER "/usr/bin/flang-new" CACHE FILEPATH "")
+set(CMAKE_Fortran_COMPILER_ID "LLVMFlang" CACHE STRING "")
+set(CMAKE_Fortran_COMPILER_SUPPORTS_F90 "1" CACHE BOOL "")
+set(CMAKE_Fortran_FLAGS "-flang-experimental-exec" CACHE STRING "")
+
+include("${CMAKE_CURRENT_LIST_DIR}/configure_external_test.cmake")