Skip to content

CXX: Add support for CPP and CPPFLAGS environment variables

Frédéric Simonis requested to merge fsimonis/cmake:add-cpp-env into master

This PR adds support for the environment variables CPP and CPPFLAGS, which are used in the HPC community.

The flags are also part of the compliance procedure of the Extreme-scale Scientific Software Development Kit (xSDK). Their Installation Policies require CMake projects to detect them manually. Thus it would be great to integrate support for them directly into CMake.

The proposed implementation always prefers the CXX and CXXFLAGS and uses CPP and CPPFLAGS as a second guess.

Merge request reports