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
On systems where netCDF is loaded as a module, the current logic searches for it using
find_package(NetCDF REQUIRED MODULE)
in the top-level CMakeLists.txt. This requires the environment variable NETCDF to be set when invoking cmake, but it does not set the NETCDF cmake variable. As a consequence, the scripts setenv_nceplibs.sh and setenv_nceplibs.csh are populated with
setenv NETCDF ""
If netCDF is built as part of NCEPLIBS-external (i.e. the netcdf libraries are in the PATH and LD_LIBRARY_PATH after sourcing the shell script) or on systems where modulefiles are used (i.e. the shell scripts are not sourced) , this is no problem. We should augment the findNetCDF.cmake package to set the cmake variable NETCDF correctly.
This is high priority for the beta03 tag of NCEPLIBS.
The text was updated successfully, but these errors were encountered:
climbfuji
changed the title
Logical flaw when creating the shell scrip to set environment variables
Logical flaw when creating the shell script to set environment variables
Feb 24, 2020
On systems where netCDF is loaded as a module, the current logic searches for it using
in the top-level
CMakeLists.txt
. This requires the environment variableNETCDF
to be set when invoking cmake, but it does not set theNETCDF
cmake variable. As a consequence, the scriptssetenv_nceplibs.sh
andsetenv_nceplibs.csh
are populated withIf netCDF is built as part of NCEPLIBS-external (i.e. the netcdf libraries are in the PATH and LD_LIBRARY_PATH after sourcing the shell script) or on systems where modulefiles are used (i.e. the shell scripts are not sourced) , this is no problem. We should augment the findNetCDF.cmake package to set the cmake variable NETCDF correctly.
This is high priority for the beta03 tag of NCEPLIBS.
The text was updated successfully, but these errors were encountered: