compilation notes on a linux system
- Dominant language
- Fortran
- Stars
- 4
- Forks
- 7
- PR merge metrics
- No merged PRs in 30d
Description
For some reason cprnc did not readily build on my system. Also, I could not figure out how to pass either the correct flags to define netcdf, or the environment variables to define netcdf.
Ultimately, I just hacked into the file cmake/FindNetCDF.cmake and hard-coded in the lines for execute process that calls the nc-config and the nf-config where I have netcdf installed.
For instance to force it to define the netcdf fortran include dirs, I just added the path to my nf-config, like so:
```
execute_process(COMMAND /home/rgknox/local/netcdf-4.9.0/bin/nf-config --includedir
OUTPUT_VARIABLE DEFAULT_Fortran_INCLUDE_DIR
OUTPUT_STRIP_TRAILING_WHITESPACE)
```
This is probably a really silly way to get it to find the netcdf includes and libs, but I tried many environment variable combinations and just couldn't find anything that worked.
Also, like other issue creators have mentioned, yes, you do have to run "make" after you run "cmake".
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.