File tree Expand file tree Collapse file tree 3 files changed +19
-0
lines changed
examples/advection_diffusion Expand file tree Collapse file tree 3 files changed +19
-0
lines changed 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