On 07/10/13 13:37, Markus Blatt wrote:
Hi,

is there some kind of documentation of the buildsystem?

Why I am aking:
I want to compile dune-cornerpoint grid with MPI. MPI seems to be
found, but  HAVE_MPI is not defined during compilation (it is in the
CMakeLists.txt though). Unfortunately I cannot find the correct place
to add it.
i doubt there is any documentation available, but i can answer this one.

there are two spots to add defines in the opm buildsystem.

if it's only needed *during* compliation of a particular module, you add it to CONFIG_IMPL_VARS in the main CMakeLists.txt, e.g.

list (APPEND ${project}_CONFIG_IMPL_VARS
    HAVE_LAPACK
    HAVE_SUPERLU
)

if however, it needs to be brought downstream (which often is the case with templates..), you add it to the xxx-prereqs.cmake in cmake/Modules. it has a equivalent list, but these apply when used as a dependency. note these are duped across projects so you have to update N copies.

arnem

_______________________________________________
Opm mailing list
[email protected]
http://www.opm-project.org/mailman/listinfo/opm

Reply via email to