ericniebler / range-v3

Range library for C++14/17/20, basis for C++20's std::ranges
Other
4.06k stars 437 forks source link

Support default CMake build types #1720

Closed PigeonF closed 1 year ago

PigeonF commented 2 years ago

By default CMake supports Debug, Release, MinSizeRel, and RelWithDebInfo (see https://cmake.org/cmake/help/latest/manual/cmake-buildsystem.7.html#default-and-custom-configurations).

Checking for all of them allows projects including range-v3 to set, for example, CMAKE_BUILD_TYPE=RelWithDebInfo without getting a warning from the range-v3 build.

Note that I changed the comparison with Debug to if (MATCHES) as well for symmetry.