summaryrefslogtreecommitdiffstats
path: root/Tests/FindBLAS
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-04-21 18:30:17 (GMT)
committerBrad King <brad.king@kitware.com>2021-04-21 18:41:54 (GMT)
commitf3f715688fb2b73652aee97b478d14d9c7689322 (patch)
tree671cc18ca10ada2b5243e42515388ecc4cfebf40 /Tests/FindBLAS
parentcb6889a09c8cd538a0856942e429fddc78dbd24e (diff)
downloadCMake-f3f715688fb2b73652aee97b478d14d9c7689322.zip
CMake-f3f715688fb2b73652aee97b478d14d9c7689322.tar.gz
CMake-f3f715688fb2b73652aee97b478d14d9c7689322.tar.bz2
Find{BLAS,LAPACK}: Add test case covering BLA_STATIC with Generic vendor
Diffstat (limited to 'Tests/FindBLAS')
-rw-r--r--Tests/FindBLAS/CMakeLists.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/Tests/FindBLAS/CMakeLists.txt b/Tests/FindBLAS/CMakeLists.txt
index 47ec568..63ef1dd 100644
--- a/Tests/FindBLAS/CMakeLists.txt
+++ b/Tests/FindBLAS/CMakeLists.txt
@@ -10,3 +10,16 @@ foreach(vendor IN LISTS CMake_TEST_FindBLAS)
--test-command ${CMAKE_CTEST_COMMAND} -V -C $<CONFIGURATION>
)
endforeach()
+
+foreach(vendor IN LISTS CMake_TEST_FindBLAS_STATIC)
+ add_test(NAME FindBLAS.Test_${vendor}_Static COMMAND
+ ${CMAKE_CTEST_COMMAND} -C $<CONFIGURATION>
+ --build-and-test
+ "${CMake_SOURCE_DIR}/Tests/FindBLAS/Test"
+ "${CMake_BINARY_DIR}/Tests/FindBLAS/Test_${vendor}_Static"
+ ${build_generator_args}
+ --build-project TestFindBLAS
+ --build-options ${build_options} -DBLA_VENDOR=${vendor} -DBLA_STATIC=ON
+ --test-command ${CMAKE_CTEST_COMMAND} -V -C $<CONFIGURATION>
+ )
+endforeach()