Skip to content

Commit c3f44b6

Browse files
committed
Use boost release
1 parent 858e32c commit c3f44b6

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

cmake/commonSettings.cmake

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,21 +138,25 @@ else()
138138
# link against static boost libraries
139139
if(NOT DEFINED Boost_USE_STATIC_LIBS)
140140
if(BUILD_SHARED_LIBS)
141-
set(Boost_USE_STATIC_LIBS 0)
141+
set(Boost_USE_STATIC_LIBS OFF)
142142
else()
143-
set(Boost_USE_STATIC_LIBS 1)
143+
set(Boost_USE_STATIC_LIBS ON)
144144
endif()
145145
endif()
146146

147147
# Boost static runtime ON for MSVC
148148
if(NOT DEFINED Boost_USE_STATIC_RUNTIME)
149149
if(BUILD_SHARED_LIBS)
150-
set(Boost_USE_STATIC_RUNTIME 0)
150+
set(Boost_USE_STATIC_RUNTIME OFF)
151151
else()
152-
set(Boost_USE_STATIC_RUNTIME 1)
152+
set(Boost_USE_STATIC_RUNTIME ON)
153153
endif()
154154
endif()
155155

156+
# Use Boost Release
157+
set(Boost_USE_DEBUG_LIBS OFF)
158+
set(Boost_USE_RELEASE_LIBS ON)
159+
156160
if(NOT Boost_USE_STATIC_LIBS)
157161
# link against dynamic boost libraries
158162
add_definitions(-DBOOST_ALL_DYN_LINK)

0 commit comments

Comments
 (0)