Unidata / netcdf-cxx4

Official GitHub repository for netCDF-C++ libraries and utilities.
Other
124 stars 49 forks source link

Imported target from netcdf-c not found when installed in a non-system location #102

Open stonecoldhughes opened 3 years ago

stonecoldhughes commented 3 years ago

To report a non-security related issue, please provide:

Version: latest Environment: ubuntu 18.04 bionic Descripton:

I want to build netcdf-cxx4 libraries without anything being installed in a system location, i.e., without sudo.

successfully built netcdf-c with the following commands:

cd ~/netcdf-c ; mkdir build ; cd build cmake -DENABLE_DAP=OFF -DCMAKE_INSTALL_PREFIX=install .. make && make ./install

attempted to build netcdf-cxx-4 with the prefix path set to point to the location of nc-config and netCDFConfig.cmake:

cd netcdf-cxx4 ; mkdir build ; cd build cmake -DCMAKE_PREFIX_PATH=~/netcdf-c/build ..

The output of the cmake invocation can be found here:

cmake_output.txt

Line 14 indicates that "netcdf" was found

make

The output of the make invocation can be found here:

make_output.txt

Line 49 indicates that "netcdf" was not found

If you have a general question about the software, please view our Suggested Support Process.