From 3d0cbeb442afa7e0b9634ccdfabf6baf6b08aff0 Mon Sep 17 00:00:00 2001 From: Lars Bilke <lars.bilke@ufz.de> Date: Tue, 16 Oct 2018 10:52:42 +0200 Subject: [PATCH] [docs] Added note on CMake's -j option. --- web/content/docs/devguide/troubleshooting/build.pandoc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/web/content/docs/devguide/troubleshooting/build.pandoc b/web/content/docs/devguide/troubleshooting/build.pandoc index a04e6d5d641..0f016c659f9 100644 --- a/web/content/docs/devguide/troubleshooting/build.pandoc +++ b/web/content/docs/devguide/troubleshooting/build.pandoc @@ -24,6 +24,12 @@ You should also have at least 8 GB of RAM and even this can be not enough when c cmake --build . --config Release -- /m:1 /p:CL_MPCount=1 ``` +**OR** if you have [CMake >= 3.12](https://cmake.org/cmake/help/v3.12/manual/cmake.1.html#build-tool-mode) you can simply use `-j 1`: + +``` +cmake --build . --config Release -j 1 +``` + If this still fails you can disable building of the failing processes, e.g.: ``` -- GitLab