From 90dd774ae455d355f74844e355cd1ea92a11c87b Mon Sep 17 00:00:00 2001 From: Joscha Schmiedt <joscha@schmiedt.dev> Date: Mon, 5 Aug 2024 22:29:13 +0200 Subject: [PATCH] FIX: Wrong build instructions for manual unit tests --- doc/Install_develop.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/Install_develop.rst b/doc/Install_develop.rst index 5aa5c8a..67618dc 100644 --- a/doc/Install_develop.rst +++ b/doc/Install_develop.rst @@ -180,15 +180,15 @@ Build For the tests the build type has to be Debug. As a shorthand you can run ``make test``. If you want to build manually, follow these steps: -1. ``conan install . -s build_type=Debug`` -2. ``cd build/Debug`` -3. ``cmake -B . -D CMAKE_BUILD_TYPE=Debug ..`` +1. ``conan install . -s build_type=Debug --build=missing`` +2. ``cd build/Debug`` +3. ``cmake -S ../.. -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=generators/conan_toolchain.cmake -DCMAKE_POLICY_DEFAULT_CMP0091=NEW -DCMAKE_BUILD_TYPE=Debug`` - If your clang-format version is too old, formatting, linting etc. can be skipped: ``cmake -B . -D CMAKE_BUILD_TYPE=Debug -D SKIP_LINTING=ON ..`` - Depending on the clang version it may be necessary to also add ``-DCMAKE_CXX_FLAGS="-Wno-unused-parameter"`` -4. ``cmake --build .`` +5. ``cmake --build . `` - If this fails with ``Error running '': No such file or directory``, you may want to try CMake's ``-D SKIP_LINTING=ON``. (See previous step.) -- GitLab