Skip to content

Commit ce8c2f3

Browse files
authored
Merge pull request ceph#55528 from tchaikov/cmake-boost-debug
cmake: build boost debug variant when CMAKE_BUILD_TYPE is Debug Reviewed-by: Casey Bodley <[email protected]>
2 parents f394e08 + c7155c3 commit ce8c2f3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cmake/modules/BuildBoost.cmake

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,11 @@ endmacro()
4747

4848
function(do_build_boost root_dir version)
4949
cmake_parse_arguments(Boost_BUILD "" "" COMPONENTS ${ARGN})
50-
set(boost_features "variant=release")
50+
if(CMAKE_BUILD_TYPE STREQUAL Debug)
51+
set(boost_features "variant=debug")
52+
else()
53+
set(boost_features "variant=release")
54+
endif()
5155
if(Boost_USE_MULTITHREADED)
5256
list(APPEND boost_features "threading=multi")
5357
else()

0 commit comments

Comments
 (0)