From ba48c30898d3be171d28499ed8a0fbc8b2548156 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Keck <Jean-Baptiste.Keck@imag.fr> Date: Wed, 17 Feb 2016 18:09:54 +0100 Subject: [PATCH] Disabled google tests by default for c++, can be enabled with cmake variable 'GOOGLE_TEST' set to 'ON'. --- HySoP/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/HySoP/CMakeLists.txt b/HySoP/CMakeLists.txt index b7da70264..55070ce45 100644 --- a/HySoP/CMakeLists.txt +++ b/HySoP/CMakeLists.txt @@ -43,6 +43,7 @@ option(FULL_TEST "Enable all test options (pep8, mpi ...) - Default = OFF" OFF) option(PROFILE "Enable profiling mode for HySoP. 0:disabled, 1: enabled. Default = 0" 0) option(OPTIM "To allow python -OO run, some packages must be deactivated. Set this option to 'ON' to do so. Default = OFF" OFF) option(WITH_MPI_TESTS "Enable mpi tests. Default = ON if USE_MPI is ON." ON) +option(WITH_GOOGLE_TESTS "Enable google tests (c++). Default = OFF." OFF) if(NOT WITH_LIB_FORTRAN) message(WARNING "You deactivate libhysop (fortran) generation. This will disable fftw and scales fonctionnalities.") @@ -234,7 +235,7 @@ if(WITH_LIB_CXX) endforeach() endif() - if(WITH_TESTS) + if(WITH_GOOGLE_TESTS) add_subdirectory(${CXX_TEST_DIR}) endif() endif() -- GitLab