8000 CMake does not search for NetCDF correctly. · Issue #8 · geodynamics/axisem · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
CMake does not search for NetCDF correctly. #8
Open
@QuLogic

Description

@QuLogic

I have installed the packaged version of NetCDF for Fortran, but CMake does not correctly find it.

$ cmake .
...
-- Failed to find NetCDF interface for F90
-- Could NOT find NetCDF (missing:  NetCDF_has_interfaces) 
-- Configuring done
-- Generating done

Note that there are two sets of libraries, non-MPI:

$ rpm -q netcdf-fortran-devel
netcdf-fortran-devel-4.2-11.fc20.x86_64
$ rpm -ql netcdf-fortran-devel | grep netcdf.inc
/usr/include/netcdf.inc
$ rpm -ql netcdf-fortran-devel | grep netcdf.mod
/usr/lib64/gfortran/modules/netcdf.mod
$ rpm -ql netcdf-fortran-devel | grep netcdff
/usr/lib64/libnetcdff.so

and an MPI version,

$ rpm -q netcdf-fortran-openmpi-devel
netcdf-fortran-openmpi-devel-4.2-11.fc20.x86_64
$ rpm -ql netcdf-fortran-openmpi-devel | grep netcdf.inc
/usr/include/openmpi-x86_64/netcdf.inc
$ rpm -ql netcdf-fortran-openmpi-devel | grep netcdf.mod
/usr/include/openmpi-x86_64/netcdf.mod
$ rpm -ql netcdf-fortran-openmpi-devel | grep netcdff
/usr/lib64/openmpi/lib/libnetcdff.so

I don't think FindNetCDF.cmake correctly understands this split.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0