diff --git a/BUILD.md b/BUILD.md index 5fc6b8871..5f3301b6e 100644 --- a/BUILD.md +++ b/BUILD.md @@ -234,13 +234,15 @@ It fixes some source files to add missing `#include`s. the `install-folder` or `-if` option to every `conan install` command in the next step. -2. Generate CMake files for every configuration you want to build. +2. Use conan to generate CMake files for every configuration you want to build: ``` conan install .. --output-folder . --build missing --settings build_type=Release conan install .. --output-folder . --build missing --settings build_type=Debug ``` + To build Debug, in the next step, be sure to set `-DCMAKE_BUILD_TYPE=Debug` + For a single-configuration generator, e.g. `Unix Makefiles` or `Ninja`, you only need to run this command once. For a multi-configuration generator, e.g. `Visual Studio`, you may want to @@ -270,13 +272,16 @@ It fixes some source files to add missing `#include`s. Single-config generators: + Pass the CMake variable [`CMAKE_BUILD_TYPE`][build_type] + and make sure it matches the one of the `build_type` settings + you chose in the previous step. + + For example, to build Debug, in the next command, replace "Release" with "Debug" + ``` cmake -DCMAKE_TOOLCHAIN_FILE:FILEPATH=build/generators/conan_toolchain.cmake -DCMAKE_BUILD_TYPE=Release -Dxrpld=ON -Dtests=ON .. ``` - Pass the CMake variable [`CMAKE_BUILD_TYPE`][build_type] - and make sure it matches the `build_type` setting you chose in the previous - step. Multi-config generators: