Imported target from netcdf-c not found when installed in a non-system location
stonecoldhughes opened this issue · comments
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:
Line 14 indicates that "netcdf" was found
make
The output of the make invocation can be found here:
Line 49 indicates that "netcdf" was not found
- the version of the software with which you are encountering an issue
- environmental information (i.e. Operating System, compiler info, java version, python version, etc.)
- a description of the issue with the steps needed to reproduce it
If you have a general question about the software, please view our Suggested Support Process.