From e2779c852f0630b6ff6a2eec9e8cfbb014e300f7 Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Mon, 15 May 2023 20:49:56 +0200 Subject: [PATCH] Do not build the tests when only the CBLAS interface is selected (#4041) * Do not build the tests when only the CBLAS interface is selected --- CMakeLists.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d59290c90..cc964b76e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -311,19 +311,25 @@ endif() #if (MSVC OR NOT NOFORTRAN) if (NOT NO_CBLAS) + if (NOT ONLY_CBLAS) # Broken without fortran on unix - add_subdirectory(utest) + add_subdirectory(utest) +endif() endif() if (NOT NOFORTRAN) + if (NOT ONLY_CBLAS) # Build test and ctest add_subdirectory(test) + endif() if (BUILD_TESTING) add_subdirectory(lapack-netlib/TESTING) endif() endif() if(NOT NO_CBLAS) + if (NOT ONLY_CBLAS) add_subdirectory(ctest) + endif() endif() if (CPP_THREAD_SAFETY_TEST OR CPP_THREAD_SAFETY_GEMV) add_subdirectory(cpp_thread_test)