cmake: use CMAKE_BUILD_TYPE instead of CONFIGURATION as BUILD_DIRECTIVE
Merge pull request #13478 from bloerwald/cmake/use_CMAKE_BUILD_TYPE_with_clang_as_well

cmake: use $CMAKE_BUILD_TYPE instead of $CONFIGURATION as BUILD_DIRECTIVE