]> git.ipfire.org Git - thirdparty/zlib-ng.git/commit
Match CMAKE_GENERATOR_TOOLSET variable case-insensitive
authorDeniz Bahadir <deniz@code.bahadir.email>
Fri, 15 Sep 2023 16:23:27 +0000 (18:23 +0200)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Sat, 16 Sep 2023 09:12:01 +0000 (11:12 +0200)
commit3eb7cd2d8a5bc63f9fb65ad6f87912a562b523ec
tree7470caa18fba3b890651eed38f47d739dc6f63aa
parent401aeb8b867d27ebbcdb44c49a727935ab707103
Match CMAKE_GENERATOR_TOOLSET variable case-insensitive

The Visual Studio CMake generator allows to select different toolsets.
One of these toolsets is Clang-Cl.

However, the generator does accept the toolset name case-agnostic, so it
could be "ClangCl", but also "Clangcl" or "clangcl" or ...
This value will be stored verbatim in variable CMAKE_GENERATOR_TOOLSET
by CMake. Therefore, this variable must be matched case-insensitive,
which is what this commit does.

fixes: #1576

Signed-off-by: Deniz Bahadir <deniz@code.bahadir.email>
cmake/detect-intrinsics.cmake