The CMAKE_BUILD_TYPE and CMAKE_CONFIGURATION_TYPES must be managed by the downstream project.
Suggesting to review with git diff -w.
Fixes std::out_of_range exception from CMake in https://github.com/hebasto/bitcoin/pull/192 when running configuration step using “Ninja Multi-Config” generator:
0$ cmake -B build -G "Ninja Multi-Config"
1...
2-- Configuring done (17.1s)
3terminate called after throwing an instance of 'std::out_of_range'
4  what():  map::at
5Aborted (core dumped)
Here are related discussions: