project_options
project_options copied to clipboard
fix(MSVC): Don't enforce /Zi if POLICY CMP0141 is available
trafficstars
With the current implementation if CMAKE_MSVC_DEBUG_INFORMATION_FORMAT is set, it won't be respected as the /Zi flag set on enable_sanitizers will always override it, just skip setting it if POLICY CMP0141 is available, if the user has set CMAKE_MSVC_DEBUG_INFORMATION_FORMAT to EditAndContinue, than only in that case override it.
Fixes #262