[Dune] cmake build, how to specify non-standard libraries

Benedikt Oswald benedikt.oswald at lspr.ch
Mon Nov 24 17:10:46 CET 2014


Dear Dune,

one question regarding linking non-standard libraries, say boost.
How would I specify them via the cmake opts files ?

Someting like this?

USE_CMAKE=yes

on the other hand, I understand that in the CMAKE_PREFIX_PATH I specify
the base directories,
but still I need to tell it which specific boost libraries need to be
linked.

Greetings and thanks for a quick hint, Benedikt


CONFIGURE_FLAGS="--enable-parallel --enable-experimental-grid-extensions
CC=mpicc CXX=mpicxx -lboost_system"

CMAKE_PREFIX_PATH="\
$HOME/extlib/boost/1.55.0/gcc/4.8.1;\
$HOME/extlib/parmetis/4.0.3/openmpi/1.6.5/gcc/4.8.1;\
$HOME/extlib/metis/5.1.0/gcc/4.8.1;\
"


CMAKE_FLAGS="\
-DCXXFLAGS=\"-O2 -Wall\" \
-DCMAKE_PREFIX_PATH=\"$CMAKE_PREFIX_PATH\" \
-DDUNE_GRID_EXPERIMENTAL_GRID_EXTENSIONS:BOOL=TRUE \
"
 
 

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


More information about the Dune mailing list