Skip to content

Commit 7676778

Browse files
committed
Add Boost_USE_STATIC_LIBS.
1 parent f114607 commit 7676778

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

builds/cmake/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,12 @@ if (BUILD_SHARED_LIBS)
9898
add_definitions( -DBOOST_ALL_DYN_LINK )
9999
endif()
100100

101+
if (BUILD_SHARED_LIBS)
102+
set( Boost_USE_STATIC_LIBS "off" )
103+
else()
104+
set( Boost_USE_STATIC_LIBS "on" )
105+
endif()
106+
101107
# Find boost
102108
#------------------------------------------------------------------------------
103109
find_package( Boost 1.72.0 REQUIRED COMPONENTS

0 commit comments

Comments
 (0)