-
Notifications
You must be signed in to change notification settings - Fork 312
Open
Labels
Milestone
Description
The CMakeMake EB does set a couple of CMake Cache vars:
| env_to_options = { |
This is not required as all but really ancient versions (<2.7) of CMake do this automatically. This was only recently documented but has been "always" the case. So setting -DCMAKE_C_COMPILER="$CC" is not required.
In addition to simplifying the EB code this also avoids warnings: On projects using only C++ CMake will spit out warnings:
CMake Warning:
Manually-specified variables were not used by the project:
CMAKE_C_COMPILER
CMAKE_C_FLAGS
CMAKE_Fortran_COMPILER
CMAKE_Fortran_FLAGS
Caveat: CMake will only use the environment variables on the first call, aka no CMakeCache exists. But as EB cleans the build folder first this is given.
In favor for a warning-free build I'd suggest to remove that code.
Reactions are currently unavailable