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 error when using system HDF5 and netcdf #5

Open
matthew-brett opened this issue Aug 13, 2013 · 0 comments · May be fixed by #6
Open

CMake error when using system HDF5 and netcdf #5

matthew-brett opened this issue Aug 13, 2013 · 0 comments · May be fixed by #6

Comments

@matthew-brett
Copy link

I ran ccmake and configured the make to use HDF5 and netcdf that I had already compiled.

Then I ran cmake .. (from the build directory), and got:

-- Found NetCDF headers: /Users/mb312/usr/local/include
-- Found NetCDF library: /Users/mb312/usr/local/lib/libnetcdf.dylib
-- Found components for HDF5
-- HDF5 library : /Users/mb312/usr/local/lib/libhdf5.dylib
-- HDF5 headers : /Users/mb312/usr/local/include
CMake Error at CMakeLists.txt:222 (ADD_DEPENDENCIES):
  add_dependencies called with incorrect number of arguments

I think this is because (around line 222 of CMakeLists.txt) MINC2_deps is the empty string when using the system HDF5 and system netcdf. Maybe the ADD_DEPENDENCIES line needs to be conditional on non-empty MINC2_deps?

@matthew-brett matthew-brett linked a pull request Aug 13, 2013 that will close this issue
vfonov pushed a commit that referenced this issue Mar 15, 2019
Update to upstream version 0.3.17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant