Skip to content

Commit 23ebda3

Browse files
committed
Enable asio separate compilation.
1 parent 8fdc421 commit 23ebda3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libs/networking/src/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ target_link_libraries(${LIBNAME}
1818
PUBLIC
1919
CURL::libcurl
2020
Boost::headers
21+
PRIVATE
22+
Boost::disable_autolinking
2123
)
2224

2325
# Need the public headers to build.
@@ -33,6 +35,8 @@ target_compile_features(${LIBNAME} PUBLIC cxx_std_17)
3335
target_compile_definitions(${LIBNAME}
3436
PUBLIC
3537
LD_CURL_NETWORKING
38+
BOOST_ASIO_SEPARATE_COMPILATION=1
39+
BOOST_BEAST_SEPARATE_COMPILATION=1
3640
)
3741

3842
# Using PUBLIC_HEADERS would flatten the include.

0 commit comments

Comments
 (0)