I’m developing an audio plugin that’s supposed to run inside another (host) program. In most hosts this works fine but there’s one in particular that causes my plugin to crash.
However this only happens when i set CMAKE_BUILD_TYPE=Release. It does not occur with CMAKE_BUILD_TYPE=Debug or CMAKE_BUILD_TYPE=RelWithDebInfo, which makes this kinda hard to debug.
Also, the fact that RelWithDebInfo and Release are behaving differently leads me to believe that CMake+MSVC does not produce the exact same binary for those 2 modes.
Is there any way I can tell CMake+MSVC to produce the same binary for Release/RelWithDebInfo, but with additional pdb files for the “real” Release mode?