[Dune] cmake docu ?

Markus Blatt markus at dr-blatt.de
Fri Nov 21 16:11:33 CET 2014


Hi,

On Fri, Nov 21, 2014 at 03:31:01PM +0100, Benedikt Oswald wrote:
> I build on Mac OS X currently, where cmake quite persistently chooses
> the Apple clang compilers
> as c an c++ compilers but then chooses the mpicxx, that I installed. It
> results in something like:
> 

If you are using dunecontrol, then you specify the compiler the usual
way, e.g. in an opts-file via the CXXFLAGS. These are then translated
to CMake syntax for you:

CONFIGURE_FLAGS="CXX=g++-4.4 CC=gcc-4.4"

If you are using CMake without dunecontrol than you specify them as
cmake -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/g++-4.4
-DCMAKE_C_COMPILER:FILEPATH=/usr/bin/g++-4.4

You can also just edit the file CMakeCache.txt in your build directory
and rerung cmake there using "cmake ."

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/20141121/1d6219e3/attachment.sig>


More information about the Dune mailing list