Closed PigeonF closed 1 year 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).
Debug
Release
MinSizeRel
RelWithDebInfo
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.
CMAKE_BUILD_TYPE=RelWithDebInfo
Note that I changed the comparison with Debug to if (MATCHES) as well for symmetry.
if (MATCHES)
By default CMake supports
Debug
,Release
,MinSizeRel
, andRelWithDebInfo
(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
toif (MATCHES)
as well for symmetry.