[Dune] including boost in cake based build system ?

Benedikt Oswald benedikt.oswald at lspr.ch
Thu Apr 17 13:53:02 CEST 2014


Dear Markus,thanks, the letter did the trick! works fine now!
Greetings, Benedikt



On 17 Apr 2014, at 12:45, Markus Blatt <markus at dr-blatt.de> wrote:

> 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 --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20140417/7616b40e/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20140417/7616b40e/attachment.sig>


More information about the Dune mailing list