Skip to content

Commit e2779c8

Browse files
authored
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
1 parent ccad941 commit e2779c8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,19 +311,25 @@ endif()
311311

312312
#if (MSVC OR NOT NOFORTRAN)
313313
if (NOT NO_CBLAS)
314+
if (NOT ONLY_CBLAS)
314315
# Broken without fortran on unix
315-
add_subdirectory(utest)
316+
add_subdirectory(utest)
317+
endif()
316318
endif()
317319

318320
if (NOT NOFORTRAN)
321+
if (NOT ONLY_CBLAS)
319322
# Build test and ctest
320323
add_subdirectory(test)
324+
endif()
321325
if (BUILD_TESTING)
322326
add_subdirectory(lapack-netlib/TESTING)
323327
endif()
324328
endif()
325329
if(NOT NO_CBLAS)
330+
if (NOT ONLY_CBLAS)
326331
add_subdirectory(ctest)
332+
endif()
327333
endif()
328334
if (CPP_THREAD_SAFETY_TEST OR CPP_THREAD_SAFETY_GEMV)
329335
add_subdirectory(cpp_thread_test)

0 commit comments

Comments
 (0)