Ninja Multi-Config segfault at generate stage with custom CMAKE_CONFIGURATION_TYPES
I'm seeing a crash when trying the Nina Multi-Config generator paired with ExternalProject_Add - the sub-build is segfaulting when trying to write out the build files. The immediate cause is a null return from GetGlobalNinjaGenerator()->GetDefaultFileStream() at CMake/Source/cmLocalNinjaGenerator.cxx line 157 (see attached log). (This is a debug build of the git default branch as of this afternoon, SHA1 c960674e) Also crashes with CMake 3.18.4.
The same setup succeeds with both the Unix Makefile and non-multiconfig Ninja generators. Superficially the output from the configure stage is the same for all three generators.
Edited by Cliff Yapp