[Dune] changing to cmake
Markus Blatt
markus at dr-blatt.de
Fri Jan 9 16:47:29 CET 2015
Hi,
On Wed, Jan 07, 2015 at 06:10:20PM +0100, Arya Fallahi wrote:
> I am having some hard time with changing to cmake. I thought maybe you can
> help me like always.
>
Probably, due to lousy outdated documentation.
> I need to force the compiler to use g++ from a certain installation. More
> accurately, not g++ but g++-4.7. How can I do that in opts file when using
> cmake. I thought of writing the following file, but it did not work:
>
> CONFIGURE_FLAGS="--enable-parallel"
>
> CMAKE_PREFIX_PATH="\
> $HOME/extlib/alugrid-1.5;\
> $HOME/extlib/metis-5.0;\
> "
>
> GXX_OPTS="-O3 -g0"
>
> CMAKE_CXX_COMPILER=g++-4.7
>
> CMAKE_FLAGS=" \
> CXXFLAGS=\"$GXX_OPTS\" \
> MPICC=$HOME/extlib/openmpi-1.6/bin/mpicc \
> "
I never do it like this. Just use your old opts file with configure
flags. dunecontrol should do the magic for you:
CONFIGURE_FLAGS="CXX=g++-4.7 MPICC=$HOME/extlib/openmpi-1.6/bin/mpicc CXXFLAGS='-O3 -g0' --with-alugrid=<path> --with-metis<path>"
The only thing that I am not sure about is whether we honor
MPICC. I just tested it and there is a bug
<https://dune-project.org/flyspray/index.php?do=details&task_id=1551> that uses the MPICC as the C compiler, we need to fix this.
But the rest is converted as expected.
Markus
--
Do you need more support with DUNE or HPC in general?
Dr. Markus Blatt - HPC-Simulation-Software & Services http://www.dr-blatt.de
Hans-Bunte-Str. 8-10, 69123 Heidelberg, Germany
Tel.: +49 (0) 160 97590858
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20150109/570c21f7/attachment.sig>
More information about the Dune
mailing list