Skip to content

Commit 4199ca7

Browse files
authored
Add LAPACK-like option to omit the LAPACK testsuite
1 parent 34ecd96 commit 4199ca7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ include(CMakePackageConfigHelpers)
2020
#######
2121
option(BUILD_WITHOUT_LAPACK "Do not build LAPACK and LAPACKE (Only BLAS or CBLAS)" OFF)
2222

23+
option(BUILD_TESTING "Build LAPACK testsuite when building LAPACK" ON)
24+
2325
option(BUILD_WITHOUT_CBLAS "Do not build the C interface (CBLAS) to the BLAS functions" OFF)
2426

2527
option(DYNAMIC_ARCH "Include support for multiple CPU targets, with automatic selection at runtime (x86/x86_64, aarch64 or ppc only)" OFF)
@@ -311,7 +313,9 @@ if (NOT NOFORTRAN)
311313
if(NOT NO_CBLAS)
312314
add_subdirectory(ctest)
313315
endif()
314-
add_subdirectory(lapack-netlib/TESTING)
316+
if (BUILD_TESTING)
317+
add_subdirectory(lapack-netlib/TESTING)
318+
endif()
315319
if (CPP_THREAD_SAFETY_TEST OR CPP_THREAD_SAFETY_GEMV)
316320
add_subdirectory(cpp_thread_test)
317321
endif()

0 commit comments

Comments
 (0)