[CMake] linking: absolute path vs -l<libname>
Alexander Neundorf
a.neundorf-work at gmx.net
Wed Sep 2 16:47:18 EDT 2015
On Wednesday, September 02, 2015 20:28:35 Nico Schlömer wrote:
> Curiously,
> ```
> message(${ZLIB_LIBRARIES})
> message(${netCDF_LIBRARIES})
> ```
> yields
> ```
> /usr/lib/x86_64-linux-gnu/libz.so
> netcdf
> ```
> Hm, I would have expected it the other way around. :)
maybe "netcdf" is the name of an imported target.
Can you check that (e.g. by trying to get a target property from it and if so
, figure out the attached location ?
Alex
More information about the CMake
mailing list