diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 50debf0d89791476cda839518f568e5825af8642..4478ae798925faa8f5c9a94d275cf8f8d5acbe63 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -270,12 +270,12 @@ Check with GCC 11.2.0 (Autotools):
   cache:
     policy: pull-push
 
-Check with GCC 11.2.0 (CMake, Unix Makefiles):
+Check with GCC 11.2.0 (CMake, Ninja):
   extends:
-    - .common_cmake_makefiles
+    - .common_cmake_ninja
     - .check_gcc
   before_script:
-    - !reference [.common_cmake_makefiles, before_script]
+    - !reference [.common_cmake_ninja, before_script]
     - !reference [.check_gcc, before_script]
 
 Check with Intel 2021.5.0 (Autotools):
@@ -323,10 +323,10 @@ Check with NAG 7.1.7114 (Autotools):
     - !reference [.common_autotools, before_script]
     - !reference [.check_nag, before_script]
 
-Check with NAG 7.1.7114 (CMake, Ninja):
+Check with NAG 7.1.7114 (CMake, Unix Makefiles):
   extends:
-    - .common_cmake_ninja
+    - .common_cmake_makefiles
     - .check_nag
   before_script:
-    - !reference [.common_cmake_ninja, before_script]
+    - !reference [.common_cmake_makefiles, before_script]
     - !reference [.check_nag, before_script]