Skip to content

Commit 3c9748d

Browse files
committed
cmake: build boost as static libraries
1 parent a44b8fe commit 3c9748d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmake/dependencies/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,9 @@ if(BUILD_Boost)
281281
set(BOOST_INCLUDE_LIBRARIES multiprecision serialization)
282282
option(BOOST_SKIP_INSTALL_RULES NO)
283283
set(BOOST_ENABLE_CMAKE ON)
284+
set(BUILD_SHARED_LIBS OFF)
284285
FetchContent_MakeAvailable(Boost)
286+
set(BUILD_SHARED_LIBS ON)
285287
list(POP_BACK CMAKE_MESSAGE_INDENT)
286288
message(CHECK_PASS "fetched")
287289
endif()

0 commit comments

Comments
 (0)