From b028fe204393d2b2756ac8e639bf44e3c408fe74 Mon Sep 17 00:00:00 2001 From: Mohammad Nejati Date: Sun, 21 Sep 2025 17:27:08 +0000 Subject: [PATCH] Use Boost namespaced targets in CMakeLists Without Boost namespace, the superproject cannot resolve dependencies from subdirectory CMakeLists: https://github.com/boostorg/cmake/pull/86 --- doc/mrdocs.yml | 1 + test/unit/CMakeLists.txt | 12 ++++++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/doc/mrdocs.yml b/doc/mrdocs.yml index 1113ab1c..bb3841ae 100644 --- a/doc/mrdocs.yml +++ b/doc/mrdocs.yml @@ -34,6 +34,7 @@ base-url: https://www.github.com/cppalliance/http_proto/blob/develop/ verbose: true multipage: true use-system-libc: true +use-system-stdlib: true # Warnings warn-unnamed-param: true diff --git a/test/unit/CMakeLists.txt b/test/unit/CMakeLists.txt index f22e8135..9e6a09fd 100644 --- a/test/unit/CMakeLists.txt +++ b/test/unit/CMakeLists.txt @@ -28,16 +28,16 @@ target_include_directories(boost_http_proto_tests PRIVATE . ../../../url/extra/t target_include_directories(boost_http_proto_tests PRIVATE . ../../) target_link_libraries( boost_http_proto_tests PRIVATE - boost_http_proto - boost_filesystem + Boost::http_proto + Boost::filesystem ) -if (TARGET boost_rts_zlib) - target_link_libraries(boost_http_proto_tests PRIVATE boost_rts_zlib) +if (TARGET Boost::rts_zlib) + target_link_libraries(boost_http_proto_tests PRIVATE Boost::rts_zlib) endif () -if (TARGET boost_rts_brotli) - target_link_libraries(boost_http_proto_tests PRIVATE boost_rts_brotli) +if (TARGET Boost::rts_brotli) + target_link_libraries(boost_http_proto_tests PRIVATE Boost::rts_brotli) endif () add_test(NAME boost_http_proto_tests COMMAND boost_http_proto_tests)