diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6a1a78b2ec25b7050c5b57b161cd80da5bc7d3b9..aa96b25ab4005fe55ded399da3f09bc84a590f99 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -28,6 +28,12 @@ ENDIF() # GCC AND GPROF_PATH
 # Disable Qt
 OPTION(OGS_DONT_USE_QT "Disables all Qt specific code." OFF)
 
+# Print CMake variable values
+IF (OGS_CMAKE_DEBUG)
+	INCLUDE(ListAllCMakeVariableValues)
+	list_all_cmake_variable_values()
+ENDIF (OGS_CMAKE_DEBUG)
+
 ######################
 ### Subdirectories ###
 ######################