11cmake_minimum_required (VERSION 2.8)
22project (SCALAPACK C Fortran)
33# Configure the warning and code coverage suppression file
4- configure_file (
4+ configure_file (
55 "${SCALAPACK_SOURCE_DIR} /CMAKE/CTestCustom.cmake.in"
66 "${SCALAPACK_BINARY_DIR} /CTestCustom.cmake"
77 COPYONLY
@@ -48,8 +48,8 @@ if (MPI_FOUND)
4848 PATH_SUFFIXES bin
4949 DOC "MPI Fortran compiler." )
5050 MARK_AS_ADVANCED (MPI_Fortran_COMPILER)
51-
52-
51+
52+
5353
5454 if ("${MPI_Fortran_COMPILER} " STREQUAL "MPI_Fortran_COMPILER-NOTFOUND" )
5555 message (ERROR "--> MPI Fortran Compiler NOT FOUND (please set MPI_BASE_DIR accordingly" )
@@ -59,7 +59,7 @@ if (MPI_FOUND)
5959 SET (CMAKE_Fortran_COMPILER "${MPI_Fortran_COMPILER} " )
6060 message (STATUS "--> Fortran Compiler : ${CMAKE_Fortran_COMPILER} " )
6161 endif ()
62-
62+
6363else ()
6464 message (STATUS "Found MPI_LIBRARY : ${MPI_FOUND} " )
6565 set (MPI_BASE_DIR ${MPI_BASE_DIR} CACHE PATH "MPI Path" )
@@ -184,7 +184,7 @@ OPTION(BUILD_STATIC_LIBS "Build static libraries" ON )
184184
185185# --------------------------------------------------
186186# Subdirectories that need to be processed
187-
187+
188188macro (append_subdir_files variable dirname)
189189get_directory_property (holder DIRECTORY ${dirname} DEFINITION ${variable} )
190190foreach (depfile ${holder} )
@@ -243,10 +243,14 @@ else (UNIX) # Need to separate Fortran and C Code
243243 scalapack_install_library(scalapack)
244244 scalapack_install_library(scalapack-F)
245245endif (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# --------------------------------------------------
249- # CPACK Packaging
253+ # CPACK Packaging
250254
251255SET (CPACK_PACKAGE_NAME "ScaLAPACK" )
252256SET (CPACK_PACKAGE_VENDOR "University of Tennessee, Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd" )
0 commit comments