check() API should have "automatic" compiler lint detection implemented
Closed this issue · 1 comments
bruxisma commented
Currently CMake's default check_<lang>_compiler_flag
behavior leaves a lot to be desired. What we should do is the following:
- Have some way to get the "warn" prefix, the "warn disable" prefix, and "warn error" prefix for compilers (e.g.,
-W
,-Wno
, and-Werror=
for GCC/Clang,/W
,/Wd
,/We
for MSVC) - have a
LINT
or similar subcommand. - Have a "guaranteed naming convention" for certain warnings (This means... translating all of MSVC's warnings to something friendly 😭)
- Generate variables/properties/generator expressions for requested lint checks that can be dropped into a
target(COMPILE_OPTIONS)
,target_compile_options
andadd_compile_options
without issue.
This will allow us to "generate" allow/deny/forbid lists of compiler lintings that users can enable/disable as desired. I personally think this will help out a great deal when working with "complex" projects.
bruxisma commented
Closing, as this project has burned me out, and I cannot continue working on it in its current state. CMake has changed massively since this project was started. Most of it is no longer necessary. A new repository will be launched in September.