cgns version

Issue #58 new
Iulian Grindeanu created an issue

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?

Comments (1)

  1. Vijay M

    There is CGNS_VERSION = 3140, and CGNS_DOTVERS = 3.14 on my system installed CGNS header file defined in cgnslib.h. So you could check that during configuration before enabling. It also incidentally happens to be PI day :)

    Please submit a PR.

  2. Log in to comment