You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TL;DR the set(OLD_CMAKE_Fortran_FLAGS... lines (and the corresponding unset(OLD_CMAKE_Fortran_FLAG... lines) should just be removed. Documentation should be added that explains how to use any of the following to customize the build:
FFLAGS environment variable
CMAKE_Fortran_FLAGS environment variable
CMAKE_Fortran_FLAGS_DEBUG environment variable
CMAKE_Fortran_FLAGS_RELEASE environment variable
CMAKE_Fortran_FLAGS_<CMAKE_BUILD_TYPE> environment variable (if any CMAKE_BUILD_TYPE other than Debug or Release are added)
-DCMAKE_Fortran_FLAGS flag to cmake
-DCMAKE_Fortran_FLAGS_DEBUG flag to cmake
-DCMAKE_Fortran_FLAGS_RELEASE flag to cmake
-DCMAKE_Fortran_FLAGS_<CMAKE_BUILD_TYPE> flag to cmake
Note that this can be set either as a -DCMAKE_Fortran_FLAGS* flag, via the CMAKE_Fortran_FLAGS* environment variables or via the special FFLAGS environment variable.
We can get some "helpful" diagnostics on the values of these flags via
TL;DR the
set(OLD_CMAKE_Fortran_FLAGS...
lines (and the correspondingunset(OLD_CMAKE_Fortran_FLAG...
lines) should just be removed. Documentation should be added that explains how to use any of the following to customize the build:FFLAGS
environment variableCMAKE_Fortran_FLAGS
environment variableCMAKE_Fortran_FLAGS_DEBUG
environment variableCMAKE_Fortran_FLAGS_RELEASE
environment variableCMAKE_Fortran_FLAGS_<CMAKE_BUILD_TYPE>
environment variable (if anyCMAKE_BUILD_TYPE
other thanDebug
orRelease
are added)-DCMAKE_Fortran_FLAGS
flag tocmake
-DCMAKE_Fortran_FLAGS_DEBUG
flag tocmake
-DCMAKE_Fortran_FLAGS_RELEASE
flag tocmake
-DCMAKE_Fortran_FLAGS_<CMAKE_BUILD_TYPE>
flag tocmake
See also
CMAKE_<LANG>_FLAGS
,CMAKE_<LANG>_FLAGS_<CONFIG>
,CMAKE_<LANG>_FLAGS_DEBUG
,CMAKE_<LANG>_FLAGS_INIT
, etc.Right now, the "restore" stage just puts the flags back at the end of configure (so that they are present at build time).
For example (via conda-forge/staged-recipes#10762), running
produces a build with the flag present:
Note that this can be set either as a
-DCMAKE_Fortran_FLAGS*
flag, via theCMAKE_Fortran_FLAGS*
environment variables or via the specialFFLAGS
environment variable.We can get some "helpful" diagnostics on the values of these flags via
and can ensure flags don't get through via:
The text was updated successfully, but these errors were encountered: