Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake build system requires a C++ compiler, although WRF-Hydro does not #585

Open
rcabell opened this issue Oct 9, 2021 · 0 comments
Open
Assignees
Labels
build system Build System related Low Priority

Comments

@rcabell
Copy link
Collaborator

rcabell commented Oct 9, 2021

When running the initial CMake configuration step, an MPI C++ compiler is used to check for expected behavior. On systems not having a C++ compiler installed, this requires installing one to pass this step, even though C++ is not used in WRF-Hydro.

Expected Behavior

Building the WRF-Hydro model should not require the presence of a C++ compiler

Current Behavior

Attempting to do initial configuration of WRF-Hydro with CMake on a system without a C++ compiler results in this error, and building halts:

    --------------------------------------------------------------------------
    The Open MPI wrapper compiler was unable to find the specified compiler
    g++ in your PATH.
    
    Note that this compiler was either specified at configure time or in
    one of several possible environment variables.
    --------------------------------------------------------------------------

Possible Solution

Update CMakeLists.txt to only check for an MPI Fortran compiler.

Your Environment

• CMake 3.18.4
• GFortran 10.2
• OpenMPI 4.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build system Build System related Low Priority
Projects
None yet
Development

No branches or pull requests

2 participants