ixm-one/legacy

check() API should have "automatic" compiler lint detection implemented

Closed this issue · 1 comments

Currently CMake's default check_<lang>_compiler_flag behavior leaves a lot to be desired. What we should do is the following:

  1. 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)
  2. have a LINT or similar subcommand.
  3. Have a "guaranteed naming convention" for certain warnings (This means... translating all of MSVC's warnings to something friendly 😭)
  4. Generate variables/properties/generator expressions for requested lint checks that can be dropped into a target(COMPILE_OPTIONS), target_compile_options and add_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.

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.