diff options
author | Brad King <brad.king@kitware.com> | 2019-05-07 15:14:00 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-05-07 15:14:20 (GMT) |
commit | 50c6204d26136176d95b69d0d399d4d8dd36b373 (patch) | |
tree | f9810a6635d2676d9983411fa9fbf0c6e6fe0438 /Modules | |
parent | ccb12f93c76d3867e963dbe0777b7dc0ced04025 (diff) | |
parent | 8527dbbf4443daf3b43f3b1543192c3a2f26be80 (diff) | |
download | CMake-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')
-rw-r--r-- | Modules/FindBLAS.cmake | 3 |
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") |