cgns version
Issue #58
new
Some systems (cooley, for example), have cgns installed in /usr
it will be found by configure; compilation fails right now on cooley because
we do not check library version. (it is rather old, 2.55, we tested basically only 3.14)
We can configure --without-cgns, and compilation should work
We need to check the version of the installed cgns, during configure, and bail out if it is not 3.1.4
What is the standard way of checking ? There is not pkg-config for cgns, I think we can check the version only if we parse cgnslib.h header file. Are there other options? Is there a macro that checks cgns version ? Or should we write one ourselves?
There is
CGNS_VERSION
= 3140, andCGNS_DOTVERS
= 3.14 on my system installed CGNS header file defined incgnslib.h
. So you could check that during configuration before enabling. It also incidentally happens to be PI day :)Please submit a PR.