Open kevinushey opened 2 weeks ago
I guess the presence of https://github.com/Unidata/netcdf-c/blob/95a6361cc617b9a8a96e4473753110bc0a816b99/nc-config.cmake.in#L361-L374 mean this is intentional, and I should instead be using --libs-ac-syntax
? But then you get:
$ ./nc-config --static --libs-ac-syntax
-L/usr/local/lib -lnetcdf -lHDF5::HDF5 -lhdf5::hdf5_hl -lm -lz -lzip -lzstd -lbz2 -lsz -lCURL::libcurl -lxml2
-L/usr/local/lib -lnetcdf -lhdf5 -lhdf5_hl -lm -lz -lzip -lzstd -lbz2 -lsz -lCURL::libcurl -lxml2
Two lines are logged, and CURL::libcurl
remains unreplaced in the second output.
I tried building netcdf with:
This produces a
nc-config
file that has:I suspect those library paths, e.g.
-lHDF5::HDF5
, are just the raw CMake directives. Do those need to be expanded into "real" library paths before generatingnc-config
?