summaryrefslogtreecommitdiffstats
path: root/Modules/FindBLAS.cmake
diff options
context:
space:
mode:
authorAlexey Ozeritsky <aozeritsky@gmail.com>2012-07-18 07:17:45 (GMT)
committerAlexey Ozeritsky <aozeritsky@gmail.com>2012-07-18 07:17:45 (GMT)
commit79a4e2bbdd0dfd8e2812160b118ac17f09d4bdb0 (patch)
tree88de84c87747c462cd82ea3a07ae620a6619ac44 /Modules/FindBLAS.cmake
parent6b6c2e0b5c544a4a410f43f2f7bc721b20267dc3 (diff)
downloadCMake-79a4e2bbdd0dfd8e2812160b118ac17f09d4bdb0.zip
CMake-79a4e2bbdd0dfd8e2812160b118ac17f09d4bdb0.tar.gz
CMake-79a4e2bbdd0dfd8e2812160b118ac17f09d4bdb0.tar.bz2
Fixed: FindLAPACK does not find MKL 10.3 when using gcc 4.x
Diffstat (limited to 'Modules/FindBLAS.cmake')
-rw-r--r--Modules/FindBLAS.cmake6
1 files changed, 2 insertions, 4 deletions
diff --git a/Modules/FindBLAS.cmake b/Modules/FindBLAS.cmake
index 9eadfd1..1cf31c4 100644
--- a/Modules/FindBLAS.cmake
+++ b/Modules/FindBLAS.cmake
@@ -484,8 +484,7 @@ if (BLA_VENDOR MATCHES "Intel*" OR BLA_VENDOR STREQUAL "All")
# mkl >= 10.3
if (CMAKE_C_COMPILER MATCHES ".+gcc.*")
list(APPEND BLAS_SEARCH_LIBS
- "mkl_blas95_lp64 mkl_intel_lp64 mkl_gnu_thread mkl_core")
- set(LM "${LM};-lgomp")
+ "mkl_blas95_lp64 mkl_intel_lp64 mkl_gnu_thread mkl_core gomp")
else ()
list(APPEND BLAS_SEARCH_LIBS
"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
if (CMAKE_C_COMPILER MATCHES ".+gcc.*")
list(APPEND BLAS_SEARCH_LIBS
- "mkl_intel_lp64 mkl_gnu_thread mkl_core")
- set(LM "${LM};-lgomp")
+ "mkl_intel_lp64 mkl_gnu_thread mkl_core gomp")
else ()
list(APPEND BLAS_SEARCH_LIBS
"mkl_intel_lp64 mkl_intel_thread mkl_core iomp5")