[Dune] alugrid+ug with cmake

Christoph GrĂ¼ninger christoph.grueninger at iws.uni-stuttgart.de
Thu May 8 16:47:01 CEST 2014


Hi Carsten,
I am preparing a better CMake documentation in the main wiki, but it is
still in a rough state.
Our CMake checks support two ways of specifying the non-standard search
paths. I currently use specific variables:

> CMAKE_FLAGS=" \
>   CXXFLAGS=\"$GXX_WARNING_OPTS $GXX_OPTS\" \
>   -DALUGRID_ROOT=/temp/gruenich/dune/zusatz/ALUGrid-1.52/install_seq/ \
>   -DUG_DIR=/temp/gruenich/dune/zusatz/ug-patch11/install_seq/lib64/cmake/ug/ \
>   "

This follows the way autotools specifies the variables. But there is no
common naming scheme of the variables, neither within Dune's check nor
within CMake's ones. Thus, this use is discouraged.
The other way is the CMAKE_PREFIX_PATH, which I have only used in rare
cases. A quick check confirmed, that it does not work for me with ALUGrid.

Please use the variables as in my example. I'll have a look what went
wrong. My suspicion is that find_file, which search alugrid.pc, always
add an "/include" after the elements in the CMAKE_PREFIX_PATH.

Regarding the missing UG status. I am aware of this and tried to fix it
last weekend. I am have not yet figured out a way to add the output for
all supported CMake version back to 2.8.6.

Hope that helps
Christoph

-- 
... as Sir Cyril Hinshelwood has observed ...fluid dynamicists
were divided into hydraulic engineers who observed things that
could not be explained and mathematicians who explained things
that could not be observed.                 -- James Lighthill
*********************************************
CMWR 2014: 10th - 13th June 2014 in Stuttgart
         Please visit www.cmwr14.de
*********************************************

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 901 bytes
Desc: OpenPGP digital signature
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20140508/08d9b6c6/attachment.sig>


More information about the Dune mailing list