Ninja Multi-Config: cmake process exit with error 0xc0000005 if CMAKE_CONFIGURATION_TYPES is equal to "Debug;Release"
After update CMake to v3.17.3 (or v3.18.0) generation of my project fails with exit code -1073741819. CMake output doesn't contain any errors:
Not searching for unused variables given on the command line.
-- The C compiler identification is MSVC 19.16.27042.0
-- The CXX compiler identification is MSVC 19.16.27042.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC/Tools/MSVC/14.16.27023/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC/Tools/MSVC/14.16.27023/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
....
-- Configuring done
"Ninja Multi-Config" generator has been used.
I made some experiments and found that after commenting the following line in my main CMakeLists.txt, the generation was successful:
set(CMAKE_CONFIGURATION_TYPES "Debug;Release")
CMake v3.17.1 works fine.
Edited by Brad King