Skip to content

Commit f2034e7

Browse files
committed
another CI fix attempt
1 parent d5d3541 commit f2034e7

3 files changed

Lines changed: 4 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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)

build/Jamfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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
;

test/limits/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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
)
2526
target_link_libraries(boost_http_limits PRIVATE
2627
Boost::align

0 commit comments

Comments
 (0)