From d88df1e630a1daba11f71d2c44a8c527965cd059 Mon Sep 17 00:00:00 2001
From: Lars Bilke <lars.bilke@ufz.de>
Date: Mon, 8 Mar 2021 09:15:36 +0100
Subject: [PATCH] [web] Added some notes on ccache usage.

Thanks for Alireza for reporting!
---
 web/content/docs/devguide/advanced/singularity.md  | 2 +-
 web/content/docs/devguide/advanced/using-ccache.md | 6 ++++++
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/web/content/docs/devguide/advanced/singularity.md b/web/content/docs/devguide/advanced/singularity.md
index 4591a9bf8cd..b60d7567fad 100644
--- a/web/content/docs/devguide/advanced/singularity.md
+++ b/web/content/docs/devguide/advanced/singularity.md
@@ -36,7 +36,7 @@ singularity pull singularity pull docker://registry.opengeosys.org/ogs/ogs/ogs/g
 singularity shell gcc_master.sif
 [Now inside the container]
 mkdir build; cd build
-cmake ../ogs -DCMAKE_BUILD_TYPE=Release
+cmake ../ogs -DCMAKE_BUILD_TYPE=Release -DOGS_DISABLE_CCACHE=ON
 make
 ./bin/ogs
 ```
diff --git a/web/content/docs/devguide/advanced/using-ccache.md b/web/content/docs/devguide/advanced/using-ccache.md
index 9dc92b6f2e9..872d3b94aa3 100644
--- a/web/content/docs/devguide/advanced/using-ccache.md
+++ b/web/content/docs/devguide/advanced/using-ccache.md
@@ -30,6 +30,12 @@ sloppiness = pch_defines,time_macros
 
 See the [ccache docs](https://ccache.samba.org/manual.html#_configuration_settings) for other available options.
 
+To disable caching with ccache:
+
+```bash
+cmake . -DOGS_DISABLE_CCACHE=ON
+```
+
 ### ccache and Clang
 
 Set the option `run_second_cpp = true` or `export CCACHE_CPP2=true` to suppress lots of [false positive compiler warnings](http://peter.eisentraut.org/blog/2014/12/01/ccache-and-clang-part-3/).
-- 
GitLab