Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CMake: Fix and cleanup compile flags (#6521)
Add a description to the function preparing the targets carrying the main compiler and linker flags. Convert CMake default flags to the ones we use, instead of overriding them later via targets. This can also avoid having us use the wrong CRT on Windows if we forget to link against osquery_cxx_settings. Reduce the "overriding <flagX> with <flagY>" messages on Windows by removing the warning level from the default flags, and adding that to the specific osquery_<c|cxx>_settings target, so that non internal targets can choose their own level. Minor cleanups Fix #6509
- Loading branch information
Showing
2 changed files
with
41 additions
and
21 deletions.
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