CXX: Add support for CPP and CPPFLAGS environment variables
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.