Skip to content

Results of CMake confchecks not propagated back to main CMakeLists.txt #2217

@MHBalsmeier

Description

@MHBalsmeier

Describe the bug
The results of the wrf_conf_check calls are variables that are either 0 or 1 indicating success or no success. They are, however, always seen as 0 by the main CMakeLists.txt.

To Reproduce

  1. ./cleanCMake.sh -a
  2. Add the print debug statements given in the Screenshot below.
  3. ./configure_new, observe the console output and the resulting compile flags.

Expected behavior
The results of the confchecks should be visible in the main CMakeLists.txt

Screenshots

Image

Resulting console output:

Fortran_2003_GAMMA=
-- Performing Check Fortran_2003_IEEE
-- Performing Check Fortran_2003_IEEE - Success
-- Performing Check Fortran_2003_ISO_C
-- Performing Check Fortran_2003_ISO_C - Success
-- Performing Check Fortran_2003_FLUSH
-- Performing Check Fortran_2003_FLUSH - Success
-- Performing Check Fortran_2003_GAMMA
-- Performing Check Fortran_2003_GAMMA - Success
-- Performing Check FSEEKO64
-- Performing Check FSEEKO64 - Success
Fortran_2003_GAMMA=0

So while the confcheck indicates success, the resulting variable arrives as 0 in the main CMakeLists.txt, so intrinsic gamma function support is disabled, resulting for example in the GF cumulus physics not working.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions