Skip to content

Commit cf1873b

Browse files
committed
Add Boost_USE_STATIC_LIBS.
1 parent 5a38c8c commit cf1873b

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
@@ -114,6 +114,12 @@ if (BUILD_SHARED_LIBS)
114114
add_definitions( -DBOOST_ALL_DYN_LINK )
115115
endif()
116116

117+
if (BUILD_SHARED_LIBS)
118+
set( Boost_USE_STATIC_LIBS "off" )
119+
else()
120+
set( Boost_USE_STATIC_LIBS "on" )
121+
endif()
122+
117123
# Find boost
118124
#------------------------------------------------------------------------------
119125
find_package( Boost 1.72.0 REQUIRED COMPONENTS

0 commit comments

Comments
 (0)