This document contains the instructions for building this repository on Linux, macOS and Windows.
The following will be enough for most people, for more detailed instructions, see below.
cmake -S . -B build/ -D CMAKE_BUILD_TYPE=Debug -D UPDATE_DEPS=ON
cmake --build build --config Debug
cmake -S . -B build/ -D VUL_WERROR=ON -D BUILD_TESTS=ON -D UPDATE_DEPS=ON -D CMAKE_BUILD_TYPE=Debug
cd build/
ctest -C Debug --parallel 8 --output-on-failure
By default VUL_WERROR
is OFF
The idiom for open source projects is to NOT enable warnings as errors.
System package managers, and language package managers have to build on multiple different platforms and compilers.
By defaulting to ON
we cause issues for package managers since there is no standard way to disable warnings until CMake 3.24
Add -D VUL_WERROR=ON
to your workflow. Or use the dev
preset shown below which will also enabling warnings as errors.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。