diff options
author | Igor S. Gerasimov <i.s.ger@ya.ru> | 2021-09-04 02:35:22 (GMT) |
---|---|---|
committer | Igor S. Gerasimov <i.s.ger@ya.ru> | 2021-10-05 14:41:36 (GMT) |
commit | 972489ae4e22179028b5e3ed8f908100665a368d (patch) | |
tree | f1f14f734c722b04be20c82c35e011e8c8d1df70 /Tests/FindBLAS/add_BLAS_LAPACK_tests.cmake | |
parent | 95219365ff76d9f28eb0c09cf2ad73312a2da11f (diff) | |
download | CMake-972489ae4e22179028b5e3ed8f908100665a368d.zip CMake-972489ae4e22179028b5e3ed8f908100665a368d.tar.gz CMake-972489ae4e22179028b5e3ed8f908100665a368d.tar.bz2 |
Find{BLAS,LAPACK}: Provide testing of BLA_SIZEOF_INTEGER
Diffstat (limited to 'Tests/FindBLAS/add_BLAS_LAPACK_tests.cmake')
-rw-r--r-- | Tests/FindBLAS/add_BLAS_LAPACK_tests.cmake | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Tests/FindBLAS/add_BLAS_LAPACK_tests.cmake b/Tests/FindBLAS/add_BLAS_LAPACK_tests.cmake index db33404..42fe386 100644 --- a/Tests/FindBLAS/add_BLAS_LAPACK_tests.cmake +++ b/Tests/FindBLAS/add_BLAS_LAPACK_tests.cmake @@ -7,10 +7,14 @@ function(add_BLAS_LAPACK_tests var) set(all "") set(compiler "") + set(model "") set(static "") + set(sizeof_int_lp64 4) + set(sizeof_int_ilp64 8) + foreach(variant IN LISTS ${var}) - if(variant MATCHES "^(all|compiler|static)=(.*)$") + if(variant MATCHES "^(all|compiler|model|static)=(.*)$") set("${CMAKE_MATCH_1}" "${CMAKE_MATCH_2}") continue() elseif(variant MATCHES "^([^=]+)=(.*)$") @@ -21,6 +25,12 @@ function(add_BLAS_LAPACK_tests var) if(variant STREQUAL "All" AND all) list(APPEND variant_options "-DEXPECT_All=${all}") endif() + if(model) + if(NOT variant_name MATCHES "Intel10_64") + string(APPEND variant_name "_${model}") + endif() + list(APPEND variant_options "-DBLA_SIZEOF_INTEGER=${sizeof_int_${model}}") + endif() if(compiler) string(APPEND variant_name "_${compiler}") list(APPEND variant_options "-DCMAKE_C_COMPILER=${compiler}") |