In Debug configuration CMake uses \Zi flag, but when you try to create a custom configuration which is just a clone of Debug, that config won’t have \Zi flag
In my opinion this is a bug and CMake only should use flags which is included in “CMAKE_CXX_FLAGS_DEBUG”
I’m aware of CMAKE_MSVC_RUNTIME_LIBRARY
I was wondering since solution to original problem was an MSVC specific thing, could other compilers require something similar? (for same problem or maybe for their unique problems)
But since you didn’t mention them, I’m just gonna assume there aren’t any, unless anyone says otherwise.
Thanks for all the help, and documenting this sounds great!