diff --git a/HySoP/CMakeLists.txt b/HySoP/CMakeLists.txt
index b7da7026407036f17223418462c86b2a9bb84024..55070ce45a5848e4c93b14017dfc10470143ad7e 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()