We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cfa427b commit 9eb3b60Copy full SHA for 9eb3b60
1 file changed
cmake/commonSettings.cmake
@@ -154,9 +154,17 @@ else()
154
endif()
155
156
# Use Boost Release
157
- set(Boost_USE_DEBUG_LIBS OFF)
158
- set(Boost_USE_RELEASE_LIBS ON)
159
- set(Boost_NO_BOOST_CMAKE ON)
+ if(CMAKE_BUILD_TYPE MATCHES Release)
+ set(Boost_USE_DEBUG_LIBS OFF)
+ set(Boost_USE_RELEASE_LIBS ON)
160
+ elseif(CMAKE_BUILD_TYPE MATCHES Debug)
161
+ set(Boost_USE_DEBUG_LIBS ON)
162
+ set(Boost_USE_RELEASE_LIBS OFF)
163
+ endif()
164
+ # Issue with Boost CMake finder introduced in version 1.70
165
+ if(Boost_VERSION VERSION_GREATER_EQUAL "1.70.0")
166
+ set(Boost_NO_BOOST_CMAKE ON)
167
168
169
if(NOT Boost_USE_STATIC_LIBS)
170
# link against dynamic boost libraries
0 commit comments