File tree Expand file tree Collapse file tree 4 files changed +22
-1
lines changed
examples/advection_diffusion Expand file tree Collapse file tree 4 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 1010 - CMAKE_BUILD_TYPE="Debug"
1111
1212before_install :
13+ - sudo add-apt-repository ppa:apokluda/boost1.53 --yes
1314 - sudo add-apt-repository ppa:ubuntu-toolchain-r/test --yes # libstdc++-4.8
1415 - if [ "${CXX}" == "clang++" ]; then sudo add-apt-repository --yes ppa:h-rayflood/llvm; fi # clang++-3.2
1516 - sudo apt-get update
1617
1718install :
1819 - if [ "${CXX}" == "clang++" ]; then sudo apt-get -qq install clang-3.2; fi
19- - sudo apt-get install g++-4.8; # clang need it for libstdc++ update
20+ - sudo apt-get install g++-4.8 # clang need it for libstdc++ update
21+ - sudo apt-get install libboost1.53-all-dev
2022
2123before_script :
2224 # update compilers
Original file line number Diff line number Diff line change @@ -3,6 +3,23 @@ set(3rdparty_INCLUDES ${3rdparty_INCLUDES})
33set (3rdparty_DEPENDEND_LIBS ${3rdparty_DEPENDEND_LIBS} )
44message (STATUS "--------------------------------------------------------------------------------" )
55
6+ message (STATUS "Boost" )
7+
8+ if (pfasst_BUILD_SHARED_LIBS OR BUILD_SHARED_LIBS )
9+ set (Boost_USE_STATIC_LIBS OFF )
10+ set (pfasst_BUILD_SHARED_LIBS ON )
11+ set (BUILD_SHARED_LIBS ON )
12+ else ()
13+ set (Boost_USE_STATIC_LIBS ON )
14+ set (pfasst_BUILD_SHARED_LIBS OFF )
15+ set (BUILD_SHARED_LIBS OFF )
16+ endif ()
17+ set (Boost_USE_MULTITHREADED ON )
18+
19+ find_package (Boost REQUIRED)
20+ list (APPEND 3rdparty_INCLUDES ${Boost_INCLUDE_DIRS} )
21+
22+
623if (pfasst_BUILD_EXAMPLES)
724 message (STATUS "FFTW3" )
825 set (fftw3_SOURCE_DIR "${pfasst_BINARY_DIR} /3rdparty/src/fftw3" )
Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ message(STATUS "Configuring 3rd party libraries")
6666# makes available:
6767# - fftw3_INCLUDES (if pfasst_BUILD_EXAMPLES)
6868# - fftw3_LIBS (if pfasst_BUILD_EXAMPLES)
69+ # and Boost headers in 3rdparty_INCLUDES
6970add_subdirectory (3rdparty)
7071
7172message (STATUS "********************************************************************************" )
Original file line number Diff line number Diff line change 11message (STATUS " advection_diffusion" )
22include_directories (
3+ ${3rdparty_INCLUDES}
34 ${fftw3_INCLUDES}
45 ${pfasst_INCLUDES}
56)
You can’t perform that action at this time.
0 commit comments