From 49e6442346383d1ff7eee21216801d5199469240 Mon Sep 17 00:00:00 2001 From: Mohammad Nejati Date: Mon, 5 Jan 2026 11:17:49 +0000 Subject: [PATCH] fix docs build --- CMakeLists.txt | 5 +++-- doc/mrdocs.yml | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0544fbf4..1ce646aa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -165,9 +165,10 @@ if (BOOST_HTTP_PROTO_MRDOCS_BUILD) file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/mrdocs.cpp" "#include \n") add_library(boost_http_proto_mrdocs "${CMAKE_CURRENT_BINARY_DIR}/mrdocs.cpp") boost_http_proto_setup_properties(boost_http_proto_mrdocs) - boost_http_proto_setup_properties(boost_http_proto_mrdocs PUBLIC BOOST_HTTP_PROTO_MRDOCS) + target_compile_definitions(boost_http_proto_mrdocs PUBLIC BOOST_HTTP_PROTO_MRDOCS) + set_target_properties(boost_http_proto_mrdocs PROPERTIES EXPORT_COMPILE_COMMANDS ON) return() -endif() +endif () add_library(boost_http_proto include/boost/http_proto.hpp build/Jamfile ${BOOST_HTTP_PROTO_HEADERS} ${BOOST_HTTP_PROTO_SOURCES}) add_library(Boost::http_proto ALIAS boost_http_proto) diff --git a/doc/mrdocs.yml b/doc/mrdocs.yml index bb3841ae..85090b54 100644 --- a/doc/mrdocs.yml +++ b/doc/mrdocs.yml @@ -40,4 +40,4 @@ use-system-stdlib: true warn-unnamed-param: true warn-if-undoc-enum-val: false -cmake: '-DCMAKE_CXX_STANDARD=20 -DBOOST_HTTP_PROTO_MRDOCS_BUILD=ON -DBOOST_HTTP_PROTO_BUILD_TESTS=OFF -DBOOST_HTTP_PROTO_BUILD_EXAMPLES=OFF' +cmake: '-DCMAKE_CXX_STANDARD=20 -DBOOST_HTTP_PROTO_MRDOCS_BUILD=ON -DCMAKE_EXPORT_COMPILE_COMMANDS=OFF'