Skip to content

Commit eebe8ca

Browse files
committed
fix docs build
1 parent e38a74a commit eebe8ca

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ source_group("" FILES "include/boost/beast2.hpp" "build/Jamfile")
149149
source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR}/include/boost/beast2 PREFIX "include" FILES ${BOOST_BEAST2_HEADERS})
150150
source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR}/src PREFIX "src" FILES ${BOOST_BEAST2_SOURCES})
151151

152-
153152
function(boost_beast2_setup_properties target)
154153
target_compile_features(${target} PUBLIC cxx_std_20)
155154
target_include_directories(${target}
@@ -174,9 +173,10 @@ if (BOOST_BEAST2_MRDOCS_BUILD)
174173
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/mrdocs.cpp" "#include <boost/beast2.hpp>\n")
175174
add_library(boost_beast2_mrdocs "${CMAKE_CURRENT_BINARY_DIR}/mrdocs.cpp")
176175
boost_beast2_setup_properties(boost_beast2_mrdocs)
177-
boost_beast2_setup_properties(boost_beast2_mrdocs PUBLIC BOOST_BEAST2_MRDOCS)
176+
target_compile_definitions(boost_beast2_mrdocs PUBLIC BOOST_BEAST2_MRDOCS)
177+
set_target_properties(boost_beast2_mrdocs PROPERTIES EXPORT_COMPILE_COMMANDS ON)
178178
return()
179-
endif()
179+
endif ()
180180

181181
add_library(boost_beast2 include/boost/beast2.hpp build/Jamfile ${BOOST_BEAST2_HEADERS} ${BOOST_BEAST2_SOURCES})
182182
add_library(Boost::beast2 ALIAS boost_beast2)

doc/mrdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ use-system-stdlib: true
3333
warn-unnamed-param: true
3434
warn-if-undoc-enum-val: false
3535

36-
cmake: '-DCMAKE_CXX_STANDARD=20 -DBOOST_BEAST2_MRDOCS_BUILD=ON -DBOOST_BEAST2_BUILD_TESTS=OFF -DBOOST_BEAST2_BUILD_EXAMPLES=OFF'
36+
cmake: '-DCMAKE_CXX_STANDARD=20 -DBOOST_BEAST2_MRDOCS_BUILD=ON -DCMAKE_EXPORT_COMPILE_COMMANDS=OFF'

0 commit comments

Comments
 (0)