Use CMake Presets for CI and Dev builds
ekilmer opened this issue · 0 comments
CMake Presets are a good way to encapsulate and reproduce CMake configuration, build, and test settings in a single file that can be used for CI and as a starting point for development builds.
CMake Presets also allow users to easily override compiler settings and flags without modification to the CMake file(s), which is useful if you want to enable/disable -Werror
.
A good example of a CMake presets file can be found here https://github.com/friendlyanon/cmake-init-shared-static/blob/master/CMakePresets.json.
While presets files require a CMake version greater than 3.19, users and developers are encouraged to use the latest version of CMake for development and/or local builds, even if this project states CMake version 3.15 as the minimum supported.