range-v3
range-v3 copied to clipboard
Need to turn off unsafe buffer warning.
rangev3-0.12.0/include/meta/meta.hpp:2277:63: error: 'first'
is an unsafe pointer used for buffer access [-Werror,-Wunsafe-buffer-usage]
constexpr std::size_t find_index_i_(bool const *const first, bool const *const last,
~~~~~~~~~~~~~~~~~~^~~~~
My attempt to turn off warning-as-error failed. Cmake option -DCMAKE_COMPILE_WARNING_AS_ERROR=OFF but there is still a -Werror on the compile line.
U need to install cmake version >= 3.24
U need to install cmake version >= 3.24
This has nothing to do with the CMake version. It still fails on CMake 3.30.2 with -DCMAKE_COMPILE_WARNING_AS_ERROR=OFF because the CMakeLists manually enables -Werror by default.
This can be somewhat fixed by passing cmake -DRANGES_HAS_WERROR=OFF, but it's still going to output a few thousand warnings.