Skip to content

Commit

Permalink
Enable C language in case we link with MKL (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
awvwgk authored Jun 7, 2024
1 parent 8e5fe4a commit 54108b5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ if(NOT TARGET "OpenMP::OpenMP_Fortran" AND WITH_OpenMP)
endif()

if(NOT TARGET "BLAS::BLAS" AND WITH_BLAS)
if(BLA_VENDOR MATCHES "^Intel")
# For detection of MKL we need a C compiler
enable_language("C")
endif()
find_package("custom-blas" REQUIRED)
endif()

Expand Down

0 comments on commit 54108b5

Please sign in to comment.