[Dune] using cmake to build your dune module

Sascha Zelzer s.zelzer at dkfz-heidelberg.de
Tue Dec 7 14:10:00 CET 2010


Hi Felix,

On 12/06/2010 07:08 PM, Felix Albrecht wrote:
> Hi,
>
> On Mon, 2010-12-06 at 18:03 +0100, Sascha Zelzer wrote:
>    
>> I am wondering if the set of files is complete, since in CMakeLists.txt,
>> variables like ALL_PKG_CPPFLAGS and DUNEMPICPPFLAGS are used but never
>> defined.
>>      
> as far as i know, these variables should not have to be set by the user,
> but rather be provided by e.g. dunecontrol.
>
>    
I cannot see how the values for these variables are set. They are empty 
in my project. I am using FIND_PACKAGE(MPI) and the MPI_LINK_FLAGS 
variable set by the FindMPI.cmake script.
>> Further, the macors HEADERCHECK and ADD_DUNE_EXECUTABLE in
>> DuneUtils.cmake are never called (ADD_DUNE_EXECUTABLE wouldn't work
>> because it depends on cmake/regen_config_header.sh).
>>      
> DuneUtils.cmake is a collection of macros that could be useful, although
> some of them may not be used in my example. I have used HEADERCHECK and
> it works.
> ADD_DUNE_EXECUTABLE is a leftover which I will remove, you should use
> ADD_EXECUTABLE instead. If you have further suggestions, just write me.
>
>    
Okay, thanks for the clarification.

Best,

Sascha




More information about the Dune mailing list