project_options icon indicating copy to clipboard operation
project_options copied to clipboard

fix(MSVC): Don't enforce /Zi if POLICY CMP0141 is available

Open ddassie-texa opened this issue 1 year ago • 0 comments
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

ddassie-texa avatar Jun 17 '24 14:06 ddassie-texa