Skip to content

Commit 3763d9b

Browse files
committed
Add Boost_USE_STATIC_LIBS.
1 parent 8f84b96 commit 3763d9b

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
@@ -90,6 +90,12 @@ if (BUILD_SHARED_LIBS)
9090
add_definitions( -DBOOST_ALL_DYN_LINK )
9191
endif()
9292

93+
if (BUILD_SHARED_LIBS)
94+
set( Boost_USE_STATIC_LIBS "off" )
95+
else()
96+
set( Boost_USE_STATIC_LIBS "on" )
97+
endif()
98+
9399
# Find boost
94100
#------------------------------------------------------------------------------
95101
find_package( Boost 1.72.0 REQUIRED COMPONENTS

0 commit comments

Comments
 (0)