Skip to content

Commit 153f8bc

Browse files
authored
Merge pull request #3584 from martin-frbg/ctestskip
Add a (CMAKE) option to skip the LAPACK testsuite and use it in Azure CI
2 parents 34ecd96 + 6c3842a commit 153f8bc

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
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()

azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ jobs:
115115
mkdir build
116116
cd build
117117
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
118-
cmake -G "Ninja" -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl -DCMAKE_Fortran_COMPILER=flang -DCMAKE_MT=mt -DCMAKE_BUILD_TYPE=Release -DMSVC_STATIC_CRT=ON ..
118+
cmake -G "Ninja" -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl -DCMAKE_Fortran_COMPILER=flang -DBUILD_TESTING=OFF -DCMAKE_MT=mt -DCMAKE_BUILD_TYPE=Release -DMSVC_STATIC_CRT=ON ..
119119
cmake --build . --config Release
120120
ctest
121121

0 commit comments

Comments
 (0)