diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 15923cb68b631200b667b553a077b68048eeaa99..716aa968344db73b02d7d55eaca77180d6e585b1 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -67,7 +67,7 @@ build_mac_clang:
     - cd debug
     - export LDFLAGS="-L/usr/local/opt/llvm/lib"
     - export CPPFLAGS="-I/usr/local/opt/llvm/include"
-    - cmake -DCMAKE_BUILD_TYPE=Debug ..
+    - cmake -DCMAKE_C_COMPILER="/usr/local/opt/llvm/bin/clang" -DCMAKE_CXX_COMPILER="/usr/local/opt/llvm/bin/clang++" -DCMAKE_BUILD_TYPE=Debug ..
     - cmake --build .
 
 deploy_doc_develop: