Skip to content

Commit b9a0ef3

Browse files
committed
Add Boost_USE_STATIC_LIBS.
1 parent 6d06a03 commit b9a0ef3

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

builds/cmake/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,12 @@ if (BUILD_SHARED_LIBS)
9494
add_definitions( -DBOOST_ALL_DYN_LINK )
9595
endif()
9696

97+
if (BUILD_SHARED_LIBS)
98+
set( Boost_USE_STATIC_LIBS "off" )
99+
else()
100+
set( Boost_USE_STATIC_LIBS "on" )
101+
endif()
102+
97103
# Find boost
98104
#------------------------------------------------------------------------------
99105
find_package( Boost 1.72.0 REQUIRED COMPONENTS

0 commit comments

Comments
 (0)