You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you mark a release in GitHub, it packages up the repo for you and provides that as a .tar.gz file, available on the "Releases" page.
However, in the case of UPP, all these tarballs are broken, because the GitHub packaging is not smart enough to handle submodules. :-(
As a result, you need to copy the FindNetCDF.cmake file into your cmake directory, and use it from there. This is unfortunate, because it is a copy of the .cmake file, which will have to be manually updated to bring in any changes to the CMakeModules version of the file. However, this is just a consequence of how CMake works, and how GitHub packages files, so with the NCEPLIBS projects, we just live with these extra copies.
The error you will get attempting to build from one of your releases is:
>> 11 CMake Error at CMakeLists.txt:34 (find_package):
12 By not providing "FindNetCDF.cmake" in CMAKE_MODULE_PATH this project has
13 asked CMake to find a package configuration file provided by "NetCDF", but
14 CMake did not find one.
15
16 Could not find a package configuration file provided by "NetCDF" with any
17 of the following names:
The text was updated successfully, but these errors were encountered:
Yes this is known limitation. For community standalone applications, we've documented use of git clone as the procedure to obtain the code, instead of advertising downloading a tarball, for this reason. This was also an issue in the past when crtm was a submodule to UPP, but we have since moved to using crtm as part of NCEPLIBS.
@EdwardColon-NOAA - Do you have recommendations on how to remain up to date with CMakeModules? Manually check at a specified cadence? What does NCEPLIBS do?
When you mark a release in GitHub, it packages up the repo for you and provides that as a .tar.gz file, available on the "Releases" page.
However, in the case of UPP, all these tarballs are broken, because the GitHub packaging is not smart enough to handle submodules. :-(
As a result, you need to copy the FindNetCDF.cmake file into your cmake directory, and use it from there. This is unfortunate, because it is a copy of the .cmake file, which will have to be manually updated to bring in any changes to the CMakeModules version of the file. However, this is just a consequence of how CMake works, and how GitHub packages files, so with the NCEPLIBS projects, we just live with these extra copies.
The error you will get attempting to build from one of your releases is:
The text was updated successfully, but these errors were encountered: