Optionally? use SYSTEM option for include_directories in FindUpsPackage.cmake
In many cases, once a product is being included from a UPS package, the users of cetbuildtools no longer care about warnings from header files in that product. Therefore, it may be desirable for FindUpsPackage.cmake to include the SYSTEM option in its include_directories call. This will cause the compiler to ignore warnings (except #warning) and clang-tidy to skip checks on header files that the user most likely can't modify.
#1 Updated by Kyle Knoepfel over 1 year ago
- Status changed from New to Feedback
We would prefer not to go this route--our experience has been that doing what you propose hides problems that bite us later. We acknowledge that the emitted warnings can be distracting. We're happy to talk about this further if you like.