Unidata / netcdf-cxx4

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

Make repository usable as Git submodule #34

Closed firegurafiku closed 8 years ago

firegurafiku commented 8 years ago

I tried to attach NetCDF-C++ library to my project using Git submodule feature and CMake's add_subdirectory, but to my surprise, this didn't work. I came to conclusion that it was caused by inconsistent use of CMAKE_CURRENT_{SOURCE|BINARY}_DIR variables. I made some replacements and it started working.

I think I have fixed the issue, but, please, check if my commit is okay.