Skip to content

Commit b028fe2

Browse files
committed
Use Boost namespaced targets in CMakeLists
Without Boost namespace, the superproject cannot resolve dependencies from subdirectory CMakeLists: boostorg/cmake#86
1 parent 63b0149 commit b028fe2

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

doc/mrdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ base-url: https://www.github.com/cppalliance/http_proto/blob/develop/
3434
verbose: true
3535
multipage: true
3636
use-system-libc: true
37+
use-system-stdlib: true
3738

3839
# Warnings
3940
warn-unnamed-param: true

test/unit/CMakeLists.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,16 @@ target_include_directories(boost_http_proto_tests PRIVATE . ../../../url/extra/t
2828
target_include_directories(boost_http_proto_tests PRIVATE . ../../)
2929
target_link_libraries(
3030
boost_http_proto_tests PRIVATE
31-
boost_http_proto
32-
boost_filesystem
31+
Boost::http_proto
32+
Boost::filesystem
3333
)
3434

35-
if (TARGET boost_rts_zlib)
36-
target_link_libraries(boost_http_proto_tests PRIVATE boost_rts_zlib)
35+
if (TARGET Boost::rts_zlib)
36+
target_link_libraries(boost_http_proto_tests PRIVATE Boost::rts_zlib)
3737
endif ()
3838

39-
if (TARGET boost_rts_brotli)
40-
target_link_libraries(boost_http_proto_tests PRIVATE boost_rts_brotli)
39+
if (TARGET Boost::rts_brotli)
40+
target_link_libraries(boost_http_proto_tests PRIVATE Boost::rts_brotli)
4141
endif ()
4242

4343
add_test(NAME boost_http_proto_tests COMMAND boost_http_proto_tests)

0 commit comments

Comments
 (0)