From 468f1973aba447e99aa58a3db77dd0c34ced889d Mon Sep 17 00:00:00 2001
From: Lars Bilke <lars.bilke@ufz.de>
Date: Wed, 28 Oct 2015 11:32:00 +0100
Subject: [PATCH] Added CMake script which marks variables as advanced.

The marked variables will not show up by default in ccmake or cmake-gui
Enable them by pressing t or the advanced checkbox.
---
 CMakeLists.txt                            |  2 ++
 scripts/cmake/MarkVariablesAdvanced.cmake | 36 +++++++++++++++++++++++
 2 files changed, 38 insertions(+)
 create mode 100644 scripts/cmake/MarkVariablesAdvanced.cmake

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 876656cd84e..7faf37bf673 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -180,3 +180,5 @@ endif() # OGS_BUILD_TESTS
 # The configuration must be called from the source dir and not BaseLib/.
 configure_file("${CMAKE_CURRENT_SOURCE_DIR}/BaseLib/BuildInfo.cpp.in"
 	"${CMAKE_CURRENT_BINARY_DIR}/BaseLib/BuildInfo.cpp" @ONLY)
+
+include(scripts/cmake/MarkVariablesAdvanced.cmake)
diff --git a/scripts/cmake/MarkVariablesAdvanced.cmake b/scripts/cmake/MarkVariablesAdvanced.cmake
new file mode 100644
index 00000000000..4073815ad05
--- /dev/null
+++ b/scripts/cmake/MarkVariablesAdvanced.cmake
@@ -0,0 +1,36 @@
+mark_as_advanced(
+	BASH_TOOL_PATH
+	Boost_FOUND
+	Boost_INCLUDE_DIRS
+	Boost_LIBRARIES
+	CATALYST_LIBRARIES
+	CMAKE_INCLUDE_SYSTEM_FLAG_CXX
+	CMAKE_OSX_ARCHITECTURES
+	CMAKE_OSX_DEPLOYMENT_TARGET
+	CMAKE_OSX_SYSROOT
+	CPPCHECK_ROOT_DIR
+	CURL_TOOL_PATH
+	DIFF_TOOL_PATH
+	EIGEN3_FOUND
+	EIGEN_NO_DEBUG
+	GIT_TOOL_PATH
+	GPROF_PATH
+	GREP_TOOL_PATH
+	HOSTNAME
+	libgeotiff_INCLUDE_DIR
+	libgeotiff_LIBRARY
+	METIS_INCLUDE_DIR
+	METIS_LIBRARY
+	MPIRUN_TOOL_PATH
+	NUM_PROCESSORS
+	NUMDIFF_TOOL_PATH
+	ParaView_DIR
+	ProcessorCount_cmd_sysctl
+	REALPATH_TOOL_PATH
+	S3CMD_TOOL_PATH
+	VALGRIND_TOOL_PATH
+	VTK_DIR
+	VTKIO_LIB_FOUND
+	xtiff_INCLUDE_DIR
+	ZIP_TOOL_PATH
+)
-- 
GitLab