...
- CFLAGS: flags for compiling C source files
- FFLAGS: flags for compiler fortran source files
- CXXFLAGS: flags for compiling CXX source files
- LDFLAGS: link flags
- CPPDEFS: c preprocessor definitions
For the first time, our build system supports conditionals based on versions (instead of having to make entirely new compiler definitions). Example:
Code Block |
---|
if (CMAKE_Fortran_COMPILER_VERSION VERSION_GREATER_EQUAL 10)
string(APPEND FFLAGS " -fallow-argument-mismatch -fallow-invalid-boz ")
endif() |
More details about the cmake macro system can be found here: https://github.com/E3SM-Project/E3SM/pull/4537
...