Skip to content

Commit 05ac040

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 05ac040

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

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)