Merge topic 'findblas'

79a4e2b Fixed: FindLAPACK does not find MKL 10.3 when using gcc 4.x
This commit is contained in:
David Cole 2012-07-24 17:02:51 -04:00 committed by CMake Topic Stage
commit d44ff1bea9
1 changed files with 2 additions and 4 deletions

View File

@ -484,8 +484,7 @@ if (BLA_VENDOR MATCHES "Intel*" OR BLA_VENDOR STREQUAL "All")
# mkl >= 10.3 # mkl >= 10.3
if (CMAKE_C_COMPILER MATCHES ".+gcc.*") if (CMAKE_C_COMPILER MATCHES ".+gcc.*")
list(APPEND BLAS_SEARCH_LIBS list(APPEND BLAS_SEARCH_LIBS
"mkl_blas95_lp64 mkl_intel_lp64 mkl_gnu_thread mkl_core") "mkl_blas95_lp64 mkl_intel_lp64 mkl_gnu_thread mkl_core gomp")
set(LM "${LM};-lgomp")
else () else ()
list(APPEND BLAS_SEARCH_LIBS list(APPEND BLAS_SEARCH_LIBS
"mkl_blas95_lp64 mkl_intel_lp64 mkl_intel_thread mkl_core iomp5") "mkl_blas95_lp64 mkl_intel_lp64 mkl_intel_thread mkl_core iomp5")
@ -516,8 +515,7 @@ if (BLA_VENDOR MATCHES "Intel*" OR BLA_VENDOR STREQUAL "All")
# mkl >= 10.3 # mkl >= 10.3
if (CMAKE_C_COMPILER MATCHES ".+gcc.*") if (CMAKE_C_COMPILER MATCHES ".+gcc.*")
list(APPEND BLAS_SEARCH_LIBS list(APPEND BLAS_SEARCH_LIBS
"mkl_intel_lp64 mkl_gnu_thread mkl_core") "mkl_intel_lp64 mkl_gnu_thread mkl_core gomp")
set(LM "${LM};-lgomp")
else () else ()
list(APPEND BLAS_SEARCH_LIBS list(APPEND BLAS_SEARCH_LIBS
"mkl_intel_lp64 mkl_intel_thread mkl_core iomp5") "mkl_intel_lp64 mkl_intel_thread mkl_core iomp5")