summaryrefslogtreecommitdiffstats
path: root/Tests/FindLAPACK/CMakeLists.txt
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-04-14 17:53:03 (GMT)
committerBrad King <brad.king@kitware.com>2021-04-14 18:57:03 (GMT)
commite4649d1d159de9c1a6f4833d6f9a5a44e5c4781b (patch)
tree312fca1e4d52483d81992fe8d7b6a2ff8cefeabf /Tests/FindLAPACK/CMakeLists.txt
parent116edb5c04790e5d9127b5cfb51943eebd5d33d8 (diff)
downloadCMake-e4649d1d159de9c1a6f4833d6f9a5a44e5c4781b.zip
CMake-e4649d1d159de9c1a6f4833d6f9a5a44e5c4781b.tar.gz
CMake-e4649d1d159de9c1a6f4833d6f9a5a44e5c4781b.tar.bz2
Find{BLAS,LAPACK}: Add test case covering Intel MKL
Diffstat (limited to 'Tests/FindLAPACK/CMakeLists.txt')
-rw-r--r--Tests/FindLAPACK/CMakeLists.txt22
1 files changed, 12 insertions, 10 deletions
diff --git a/Tests/FindLAPACK/CMakeLists.txt b/Tests/FindLAPACK/CMakeLists.txt
index 2081d59..5e2ea7a 100644
--- a/Tests/FindLAPACK/CMakeLists.txt
+++ b/Tests/FindLAPACK/CMakeLists.txt
@@ -1,10 +1,12 @@
-add_test(NAME FindLAPACK.Test COMMAND
- ${CMAKE_CTEST_COMMAND} -C $<CONFIGURATION>
- --build-and-test
- "${CMake_SOURCE_DIR}/Tests/FindLAPACK/Test"
- "${CMake_BINARY_DIR}/Tests/FindLAPACK/Test"
- ${build_generator_args}
- --build-project TestFindLAPACK
- --build-options ${build_options}
- --test-command ${CMAKE_CTEST_COMMAND} -V -C $<CONFIGURATION>
- )
+foreach(vendor IN LISTS CMake_TEST_FindLAPACK)
+ add_test(NAME FindLAPACK.Test_${vendor} COMMAND
+ ${CMAKE_CTEST_COMMAND} -C $<CONFIGURATION>
+ --build-and-test
+ "${CMake_SOURCE_DIR}/Tests/FindLAPACK/Test"
+ "${CMake_BINARY_DIR}/Tests/FindLAPACK/Test_${vendor}"
+ ${build_generator_args}
+ --build-project TestFindLAPACK
+ --build-options ${build_options} -DBLA_VENDOR=${vendor}
+ --test-command ${CMAKE_CTEST_COMMAND} -V -C $<CONFIGURATION>
+ )
+endforeach()