summaryrefslogtreecommitdiffstats
path: root/Modules/FindBLAS.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-05-07 15:14:00 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-05-07 15:14:20 (GMT)
commit50c6204d26136176d95b69d0d399d4d8dd36b373 (patch)
treef9810a6635d2676d9983411fa9fbf0c6e6fe0438 /Modules/FindBLAS.cmake
parentccb12f93c76d3867e963dbe0777b7dc0ced04025 (diff)
parent8527dbbf4443daf3b43f3b1543192c3a2f26be80 (diff)
downloadCMake-50c6204d26136176d95b69d0d399d4d8dd36b373.zip
CMake-50c6204d26136176d95b69d0d399d4d8dd36b373.tar.gz
CMake-50c6204d26136176d95b69d0d399d4d8dd36b373.tar.bz2
Merge topic 'use_intel_mkl_blas_intface_on_osX'
8527dbbf44 FindBLAS: Use Intel fortran interface on OS X even with GNU Fortran Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3286
Diffstat (limited to 'Modules/FindBLAS.cmake')
-rw-r--r--Modules/FindBLAS.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/FindBLAS.cmake b/Modules/FindBLAS.cmake
index 77e689f..8d55ac7 100644
--- a/Modules/FindBLAS.cmake
+++ b/Modules/FindBLAS.cmake
@@ -239,7 +239,8 @@ if (BLA_VENDOR MATCHES "Intel" OR BLA_VENDOR STREQUAL "All")
set(BLAS_mkl_DLL_SUFFIX "_dll")
endif()
else()
- if(CMAKE_Fortran_COMPILER_LOADED AND CMAKE_Fortran_COMPILER_ID STREQUAL "GNU")
+ # Switch to GNU Fortran support layer if needed (but not on Apple, where MKL does not provide it)
+ if(CMAKE_Fortran_COMPILER_LOADED AND CMAKE_Fortran_COMPILER_ID STREQUAL "GNU" AND NOT APPLE)
set(BLAS_mkl_INTFACE "gf")
set(BLAS_mkl_THREADING "gnu")
set(BLAS_mkl_OMP "gomp")