Skip to content

Commit 983dc33

Browse files
committed
cmake: use Boost's static libs when all other are static
1 parent 95b29ac commit 983dc33

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

3rdparty/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ message(STATUS "----------------------------------------------------------------
1010
message(STATUS "Boost")
1111

1212
set(Boost_USE_MULTITHREADED ON)
13+
if(NOT ${pfasst_BUILD_SHARED_LIBS})
14+
set(Boost_USE_STATIC_LIBS ON)
15+
endif()
1316
set(Boost_ADDITIONAL_VERSIONS "1.57" "1.57.0" ${Boost_ADDITIONAL_VERSIONS})
1417

1518
if(${compiler_version_available} AND ${CMAKE_CXX_COMPILER_ID} MATCHES Clang)

0 commit comments

Comments
 (0)