Hi -
A couple years ago, the NetCDF crew separated out their Fortran library, 
producing netcdf for the C API and the Fortran netcdff with an extra "f". At 
one point in the history the number of libraries was an option, so that a given 
version could be built either way. The problem for me is that this doesn't 
really distinguish how well they will work for my project, I just want it to 
link.

The simplest option would be to not bail if the second library is not found, 
but rather print a warning that leaves the user some hints to diagnose the 
problem if they get a bunch of linker errors. At the other end of the spectrum 
I would search for a particular symbol in the first (netcdf) library if the 
second library is not found.

Any advice on how to proceed with that? Do I have to generate and run a small 
executable in FindNetCDF.cmake? Is there another way?

Thanks,
Eli
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to