mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-14 02:08:27 +08:00
Find{BLAS,LAPACK}: Add test case covering BLA_STATIC with Intel MKL
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
set(CMake_TEST_FindBLAS "Intel10_64lp" CACHE STRING "")
|
||||
set(CMake_TEST_FindBLAS_STATIC "Intel10_64lp" CACHE STRING "")
|
||||
set(CMake_TEST_FindLAPACK "Intel10_64lp" CACHE STRING "")
|
||||
set(CMake_TEST_FindLAPACK_STATIC "Intel10_64lp" CACHE STRING "")
|
||||
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/configure_external_test.cmake")
|
||||
|
@@ -13,7 +13,7 @@ target_link_libraries(test_var PRIVATE ${BLAS_LIBRARIES})
|
||||
add_test(NAME test_var COMMAND test_var)
|
||||
|
||||
if(BLA_VENDOR STREQUAL "Intel10_64lp")
|
||||
if(NOT BLAS_LIBRARIES MATCHES "^[^;]*mkl_intel_lp64")
|
||||
if(NOT BLAS_LIBRARIES MATCHES "^(-Wl,--start-group;)?[^;]*mkl_intel_lp64")
|
||||
message(FATAL_ERROR "BLAS_LIBRARIES does not start in mkl_intel_lp64:\n ${BLAS_LIBRARIES}")
|
||||
endif()
|
||||
endif()
|
||||
|
@@ -13,7 +13,7 @@ target_link_libraries(test_var PRIVATE ${LAPACK_LIBRARIES})
|
||||
add_test(NAME test_var COMMAND test_var)
|
||||
|
||||
if(BLA_VENDOR STREQUAL "Intel10_64lp")
|
||||
if(NOT LAPACK_LIBRARIES MATCHES "^[^;]*mkl_intel_lp64")
|
||||
if(NOT LAPACK_LIBRARIES MATCHES "^(-Wl,--start-group;)?[^;]*mkl_intel_lp64")
|
||||
message(FATAL_ERROR "LAPACK_LIBRARIES does not start in mkl_intel_lp64:\n ${LAPACK_LIBRARIES}")
|
||||
endif()
|
||||
endif()
|
||||
|
Reference in New Issue
Block a user