From 70e3bd1e8b6c513c833093d67c1ce9d38d3377b0 Mon Sep 17 00:00:00 2001 From: Lars Bilke <lars.bilke@ufz.de> Date: Thu, 8 Feb 2024 13:16:12 +0100 Subject: [PATCH] [web] Added correct ccmake usage. ccmake does not support presets! --- .../getting-started/build-configuration/index.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/web/content/docs/devguide/getting-started/build-configuration/index.md b/web/content/docs/devguide/getting-started/build-configuration/index.md index 134857424ec..9590c1b0712 100644 --- a/web/content/docs/devguide/getting-started/build-configuration/index.md +++ b/web/content/docs/devguide/getting-started/build-configuration/index.md @@ -153,15 +153,16 @@ CMake comes with a graphical tool called `cmake-gui`. You can find it in the **W <div class='linux'> -A more convenient way of running CMake on the command line is to use the `ccmake` tool. This is a shell tool but with some graphical user interface. To use it just run `ccmake` instead of `cmake`: +A more convenient way of running CMake on the command line is to use the `ccmake` tool. This is a shell tool but with some graphical user interface. If you want to use a preset configure with regular `cmake` first (`ccmake` **does not support presets**) and then run `ccmake` supplying the path to the build directory: ```bash -ccmake --preset release +cmake --preset release +ccmake ../build/release ``` -First press <kbd>C</kbd> to **Configure**. You are now presented the available configuration options. You can navigate in the list with the cursor keys and toggle / alter options with <kbd>Enter</kbd>. You may also press <kbd>T</kbd> to toggle (previously hidden) advanced options. Press <kbd>C</kbd> again until the **Generate**-option becomes visible. Press <kbd>G</kbd> to generate the project files and exit `ccmake`. +You are now presented the available configuration options. You can navigate in the list with the cursor keys and toggle / alter options with <kbd>Enter</kbd>. You may also press <kbd>T</kbd> to toggle (previously hidden) advanced options. Press <kbd>C</kbd> again until the **Generate**-option becomes visible. Press <kbd>G</kbd> to generate the project files and exit `ccmake`. -There is also the tool `cmake-gui` available, please see the Win-Tab for a description. +There is also the tool `cmake-gui` available (which supports presets), please see the Win-Tab for a description. </div> -- GitLab