Some build configurations on clusters emit numerous warnings from headers in our dependencies. We should set up the environments so they treat the dependencies as system-installed to avoid the warnings. This mainly involves replacing CPATH with C_INCLUDE_PATH or CPLUS_INCLUDE_PATH in the environment files.
Bug reports:
Some build configurations on clusters emit numerous warnings from headers in our dependencies. We should set up the environments so they treat the dependencies as system-installed to avoid the warnings. This mainly involves replacing
CPATH
withC_INCLUDE_PATH
orCPLUS_INCLUDE_PATH
in the environment files.More information:
Note that (1) CMake treats include directories from imported targets as "system" by default and (2) even when the
CPATH
is set the directories should be treated as "system" as of https://gitlab.kitware.com/cmake/cmake/-/merge_requests/3395.