File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -158,6 +158,7 @@ function(boost_http_setup_properties target)
158158 target_link_libraries (${target} PUBLIC ${BOOST_HTTP_DEPENDENCIES} )
159159 # Add corosio headers without linking (header-only usage)
160160 target_include_directories (${target} PUBLIC $<TARGET_PROPERTY :Boost ::corosio ,INTERFACE_INCLUDE_DIRECTORIES >)
161+ target_compile_definitions (${target} PUBLIC BOOST_COROSIO_NO_LIB ) # Disable corosio auto-linking
161162 target_compile_definitions (${target} PUBLIC BOOST_HTTP_NO_LIB )
162163 target_compile_definitions (${target} PRIVATE BOOST_HTTP_SOURCE )
163164 if (BUILD_SHARED_LIBS )
Original file line number Diff line number Diff line change @@ -49,13 +49,15 @@ lib boost_http
4949 <include>../
5050 <include>../../corosio/include
5151 <define>BOOST_HTTP_SOURCE
52+ <define>BOOST_COROSIO_NO_LIB
5253 <target-os>windows:<library>bcrypt_sys
5354 <target-os>darwin:<linkflags>"-framework Security"
5455 : usage-requirements
5556 <library>/boost//capy
5657 <library>/boost/json//boost_json/<warnings-as-errors>off
5758 <library>/boost//url
5859 <include>../../corosio/include
60+ <define>BOOST_COROSIO_NO_LIB
5961 <target-os>windows:<library>bcrypt_sys
6062 <target-os>darwin:<linkflags>"-framework Security"
6163 ;
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ target_compile_definitions(boost_http_limits PRIVATE
2121 BOOST_HTTP_TEST_LIMITS
2222 BOOST_HTTP_NO_LIB
2323 BOOST_HTTP_STATIC_LINK
24+ BOOST_COROSIO_NO_LIB
2425)
2526target_link_libraries (boost_http_limits PRIVATE
2627 Boost::align
You can’t perform that action at this time.
0 commit comments