[Dune] including boost in cake based build system ?
Markus Blatt
markus at dr-blatt.de
Thu Apr 17 12:45:24 CEST 2014
On Thu, Apr 17, 2014 at 12:30:47PM +0200, Benedikt Oswald wrote:
> Hello Markus and Christoph,
>
> thanks for the quick reply!
>
> I fact, I use
>
> CMAKE_FLAGS="--enable-experimental-grid-extensions --enable-shared --enable-static -DCMAKE_CXX_FLAGS=\"-O2\" -DBOOST_ROOT=\"$HOME/extlib/boost/1.55.0/gcc/4.8.1\" -DCMAKE_PREFIX_PATH=\"$HOME/extlib/boost/1.55.0/gcc/4.8.1;$HOME/extlib/alugrid/1.96/openmpi/1.6.5/gcc/4.8.1;$HOME/extlib/metis/5.1.0/gcc/4.8.1;$HOME/extlib/parmetis/4.0.3/openmpi/1.6.5/gcc/4.8.1\" "
>
>
>
> ## additional flags
> ##
> MAKE_FLAGS="-Wall"
> USE_CMAKE="yes"
>
>
> when I check with ccmake./ in the build directory of my new application, I see this:
>
>
>
> BOOST_ROOT
> /Users/oswald/extlib/boost/1.55.0/gcc/4.8.1
Looks good.
>
> when I try to include something like:
>
> #include <boost/date_time/posix_time/posix_time.hpp>
You probably need to set the compile flags for your binary in CMakeLists.txt:
add_dune_boost_flags(binary1;binary2)
or set them globally for all targets with
link_libraries(${DUNE_Boost_LIBRARIES})
include_directories(${Boost_INCLUDE_DIRS}))
add_definitions(-DENABLE_BOOST)
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/20140417/17edac10/attachment.sig>
More information about the Dune
mailing list