[Dune] alugrid+ug with cmake

Christoph Grüninger christoph.grueninger at iws.uni-stuttgart.de
Fri May 9 11:26:29 CEST 2014


Hi Carsten,
thanks for your investigation. I think Markus changed it from
FindUG.cmake to UseUG.cmake due to "it is meant to be that way" as UG
provides a config.cmake file.

I'll ask on the CMake mailing list how to get rid of the warning or
whether it is a bug.

Bye
Christoph

Am 09.05.2014 11:12, schrieb Carsten Gräser:
> Am 09.05.2014 10:44, schrieb Carsten Gräser:
> [...]
> 
>>> I fixed the summary for UG.
>>> Please give the current master another try.
>> I also found out that removing QUIET fixes this at the price of
>> the warning if ug is not found. This seems to be the reason
>> why you added the QUIET flag in 25f3e04.
>>
>> As far as I understand (as cmake novice) after reading
>> the cmake docs, the reason for the warning is that we
>> don't follow the cmake philosophy when testing for ug:
>>
>> If we just call find_package(FOO, 3.9.1) it would normaly
>> invoke the MODULE-mode that calls FindFoo.cmake and will
>> not warn if foo is not found. If there is not FindFoo.cmake
>> it goes to CONFIG-mode that uses foo-config.cmake of an
>> _existing_ foo. Since foo-config.cmake is part of that
>> check it emits a warning if the latter is not found.
>>
>> The clean solution seems to be to provide a FindUG.cmake
>> that checks for presence of ug. If ug is found this one
>> can use find_package(... CONFIG) do get the details from
>> ug-config.cmake.
> On the other hand this answer on the cmake list indicates
> that this is not the desired ways (neglecting the error
> if the config file is missing)
> 
>   http://www.cmake.org/pipermail/cmake/2011-April/043737.html
> 
> Carsten
> 
> 
> 
> _______________________________________________
> Dune mailing list
> Dune at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune
> 

-- 
... 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/20140509/103bb141/attachment.sig>


More information about the Dune mailing list