2. Try and build WRF-Hydro with basic CMake commands: `mkdir build; cd build; cmake ..`
## Your Environment
* Version of the code used: `main` branch
* Operating System and version: Cheyenne
* Compiler and version: GNU 10.1.0
* Other relevant information: Using Spack Modules so NetCDF C and Fortran installations are in different directories
Expected Behavior
CMake build finds the Fortran NetCDF library when the NetCDF C and Fortran installation are in different directories.
Current Behavior
The line
is only searching the path where the C library is installed, but the Fortran NetCDF library is installed is a separate directory.
Possible Solution
Choose one of the following or maybe something else
FindNetCDF.cmake
so it can find the Fortran NetCDF installation.NO_DEFAULT_PATH
workedCMakeLists.txt
or theFindNetCDF.cmake
file extract and use the path fromnf-config --flibs
, it will have the Fortran installation.Steps to Reproduce (for bugs)
module use /glade/work/jedipara/cheyenne/spack-stack/modulefiles/misc module load miniconda/3.9.12 module load ecflow/5.8.4 module load mysql/8.0.31
module use /glade/work/epicufsrt/contrib/spack-stack/spack-stack-1.4.0/envs/unified-env-v2/install/modulefiles/Core module load stack-gcc/10.1.0 module load stack-openmpi/4.1.1 module load stack-python/3.9.12 module load jedi-base-env