Attached Files | cmake_blas_lapack_mkl_gcc.patch [^] (1,734 bytes) 2012-09-12 04:35 [Show Content] [Hide Content]--- cmake-2.8/Modules/FindBLAS.cmake.orig 2012-08-09 20:15:19.000000000 +0200
+++ cmake-2.8/Modules/FindBLAS.cmake 2012-06-22 15:47:00.000000000 +0200
@@ -484,7 +484,8 @@
# 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 gomp")
+ "mkl_blas95_lp64 mkl_intel_lp64 mkl_gnu_thread mkl_core")
+ set(LM "${LM};-lgomp")
else ()
list(APPEND BLAS_SEARCH_LIBS
"mkl_blas95_lp64 mkl_intel_lp64 mkl_intel_thread mkl_core iomp5")
@@ -515,7 +516,8 @@
# mkl >= 10.3
if (CMAKE_C_COMPILER MATCHES ".+gcc.*")
list(APPEND BLAS_SEARCH_LIBS
- "mkl_intel_lp64 mkl_gnu_thread mkl_core gomp")
+ "mkl_intel_lp64 mkl_gnu_thread mkl_core")
+ set(LM "${LM};-lgomp")
else ()
list(APPEND BLAS_SEARCH_LIBS
"mkl_intel_lp64 mkl_intel_thread mkl_core iomp5")
--- cmake-2.8/Modules/FindLAPACK.cmake.orig 2012-09-12 09:54:59.463260325 +0200
+++ cmake-2.8/Modules/FindLAPACK.cmake 2012-09-12 10:31:39.787510506 +0200
@@ -244,6 +244,9 @@
endif(NOT LAPACK95_LIBRARIES)
if(NOT LAPACK95_LIBRARIES)
# new >= 10.3
+ if (CMAKE_C_COMPILER MATCHES ".+gcc.*")
+ set(LM "${LM};-lgomp")
+ endif()
check_lapack_libraries(
LAPACK95_LIBRARIES
LAPACK
@@ -269,6 +272,9 @@
endif(NOT LAPACK_LIBRARIES)
if(NOT LAPACK_LIBRARIES)
# new >= 10.3
+ if (CMAKE_C_COMPILER MATCHES ".+gcc.*")
+ set(LM "${LM};-lgomp")
+ endif()
check_lapack_libraries(
LAPACK_LIBRARIES
LAPACK
|