-
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(MSVC): Don't enforce /Zi if POLICY CMP0141 is available
With the current implementation if CMAKE_MSVC_DEBUG_INFORMATION_FORMAT is set, it won't be respected as the /Zi flag is always set in enable_sanitizers. If POLICY CMP0141 is available, don't set the /Zi flag, instead use MSVC_DEBUG_INFORMATION_FORMAT, if the user didn't set CMAKE_MSVC_DEBUG_INFORMATION_FORMAT or set it to EditAndContinue, than only in that case set it to ProgramDatabase.
- Loading branch information
1 parent
2f9199c
commit 398f901
Showing
2 changed files
with
17 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters