summaryrefslogtreecommitdiffstats
path: root/.gitlab/ci/configure_intelcompiler_common.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-09-22 18:55:42 (GMT)
committerIgor S. Gerasimov <i.s.ger@ya.ru>2021-10-05 14:41:36 (GMT)
commit9b69307b56376e2bd0a82539562f9e59a808194b (patch)
tree549ac8a41a7dcd38c3949a46594805dda4b9791d /.gitlab/ci/configure_intelcompiler_common.cmake
parent91fd645d46adeaa22221b0c08307d2dc35b81ade (diff)
downloadCMake-9b69307b56376e2bd0a82539562f9e59a808194b.zip
CMake-9b69307b56376e2bd0a82539562f9e59a808194b.tar.gz
CMake-9b69307b56376e2bd0a82539562f9e59a808194b.tar.bz2
Find{BLAS,LAPACK}: De-duplicate and generalize test creation logic
Interpret `CMake_TEST_FindBLAS` and `CMake_TEST_FindLAPACK` as a sequence of option assignments intermixed with vendor names.
Diffstat (limited to '.gitlab/ci/configure_intelcompiler_common.cmake')
-rw-r--r--.gitlab/ci/configure_intelcompiler_common.cmake15
1 files changed, 7 insertions, 8 deletions
diff --git a/.gitlab/ci/configure_intelcompiler_common.cmake b/.gitlab/ci/configure_intelcompiler_common.cmake
index be175e4..2698f88 100644
--- a/.gitlab/ci/configure_intelcompiler_common.cmake
+++ b/.gitlab/ci/configure_intelcompiler_common.cmake
@@ -1,10 +1,9 @@
-set(CMake_TEST_FindBLAS "All;Intel10_64lp;Intel10_64lp.gcc" CACHE STRING "")
-set(CMake_TEST_FindBLAS_All "Intel10_64lp" CACHE STRING "")
-set(CMake_TEST_FindBLAS_STATIC "All;Intel10_64lp;Intel10_64lp.gcc" CACHE STRING "")
-set(CMake_TEST_FindBLAS_STATIC_All "Intel10_64lp" CACHE STRING "")
-set(CMake_TEST_FindLAPACK "All;Intel10_64lp;Intel10_64lp.gcc" CACHE STRING "")
-set(CMake_TEST_FindLAPACK_All "Intel10_64lp" CACHE STRING "")
-set(CMake_TEST_FindLAPACK_STATIC "All;Intel10_64lp;Intel10_64lp.gcc" CACHE STRING "")
-set(CMake_TEST_FindLAPACK_STATIC_All "Intel10_64lp" CACHE STRING "")
+set(blas_lapack_cases
+ all=Intel10_64lp
+ static=0 All Intel10_64lp compiler=gcc Intel10_64lp compiler=
+ static=1 All Intel10_64lp compiler=gcc Intel10_64lp compiler=
+ )
+set(CMake_TEST_FindBLAS "${blas_lapack_cases}" CACHE STRING "")
+set(CMake_TEST_FindLAPACK "${blas_lapack_cases}" CACHE STRING "")
include("${CMAKE_CURRENT_LIST_DIR}/configure_external_test.cmake")