Skip to content

Commit f3ebaec

Browse files
committed
SCALAPACK_BUILD_TESTS option added
PBLAS/TIMING also considered TEST
1 parent bc6cad5 commit f3ebaec

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

BLACS/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
add_subdirectory(SRC)
2-
if(BUILD_TESTING)
2+
if(${SCALAPACK_BUILD_TESTING})
33
add_subdirectory(TESTING)
4-
endif(BUILD_TESTING)
4+
endif()

CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,11 @@ else (UNIX) # Need to separate Fortran and C Code
243243
scalapack_install_library(scalapack)
244244
scalapack_install_library(scalapack-F)
245245
endif (UNIX)
246-
add_subdirectory(TESTING)
246+
247+
option(SCALAPACK_BUILD_TESTS "Build all tests of the ScaLAPACK library" ON)
248+
if(${SCALAPACK_BUILD_TESTS})
249+
add_subdirectory(TESTING)
250+
endif()
247251

248252
# --------------------------------------------------
249253
# CPACK Packaging

PBLAS/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
add_subdirectory(SRC)
2-
add_subdirectory(TESTING)
3-
add_subdirectory(TIMING)
2+
if(${SCALAPACK_BUILD_TESTING})
3+
add_subdirectory(TESTING)
4+
add_subdirectory(TIMING)
5+
endif()

REDIST/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
add_subdirectory(SRC)
2-
add_subdirectory(TESTING)
2+
if(${SCALAPACK_BUILD_TESTING})
3+
add_subdirectory(TESTING)
4+
endif()

0 commit comments

Comments
 (0)