The new ENABLE_MPI_F08 appears to have confusing usage. cmake respects values of -DENABLE_MPI_F08=YES, -DENABLE_MPI_F08=TRUE, and -DENABLE_MPI_F08=1. All of the usages lead to a prompt from cmake informing the user that mpi_f08 is being enabled.
However, the variable PF_USE_MPI_F08 that is used as the argument for the preprocess directive in pf_mpi_defines.fh inherits the value provided by the user in src/pfunit/CMakeLists.txt
The only option the user specifies that actually chooses the correct preprocessor branch is -DENABLE_MPI_F08=1. All other options appear to define the variables as integers.
The new
ENABLE_MPI_F08
appears to have confusing usage.cmake
respects values of-DENABLE_MPI_F08=YES
,-DENABLE_MPI_F08=TRUE
, and-DENABLE_MPI_F08=1
. All of the usages lead to a prompt fromcmake
informing the user that mpi_f08 is being enabled.However, the variable
PF_USE_MPI_F08
that is used as the argument for the preprocess directive inpf_mpi_defines.fh
inherits the value provided by the user insrc/pfunit/CMakeLists.txt
The only option the user specifies that actually chooses the correct preprocessor branch is
-DENABLE_MPI_F08=1
. All other options appear to define the variables asintegers
.