<div dir="ltr">Curiously,<div>```</div><div><div>message(${ZLIB_LIBRARIES})</div><div>message(${netCDF_LIBRARIES})</div></div><div>```</div><div>yields<br><div>```</div><div><div>/usr/lib/x86_64-linux-gnu/libz.so</div><div>netcdf</div></div><div>```</div></div><div>Hm, I would have expected it the other way around. :)</div><div><br></div><div>--Nico</div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Sep 2, 2015 at 10:17 PM Alexander Neundorf <<a href="mailto:a.neundorf-work@gmx.net">a.neundorf-work@gmx.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Wednesday, September 02, 2015 08:22:08 Nico Schlömer wrote:<br>
> > it uses -l if the full path is not know or if the full path is one of the<br>
> > system<br>
> library dirs<br>
><br>
> Hm, that sound a little weird. Using `-l` appears to delegate the library<br>
> finding to the linker although CMake has already done that job. If one was<br>
> overly cautious, one could ask questions like: What if there are two<br>
> libraries by the same name in different system library dirs? What if<br>
> there's only one library in a system dir at configure time, but two at link<br>
> time?<br>
><br>
> Moreover, in the example I gave above it seems that both libraries are in<br>
> the system path, yet still they are represented differently on the link<br>
> line.<br>
<br>
what values do ${ZLIB_LIBRARIES} and ${netCDF_LIBRARIES} have in your case ?<br>
<br>
Alex<br>
<br>
</blockquote></div>