Skip to content

Commit 9c9be66

Browse files
committed
fix(async): avoid exporting vendored Asio source include path
1 parent aa952ad commit 9c9be66

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ function(vix_async_link_asio onto link_scope)
4141
# Standalone mode: try module-local first
4242
set(_asio_local "${CMAKE_CURRENT_LIST_DIR}/third_party/asio/include")
4343
if (EXISTS "${_asio_local}/asio.hpp")
44-
target_include_directories(${onto} SYSTEM ${link_scope} "${_asio_local}")
44+
target_include_directories(${onto} SYSTEM ${link_scope}
45+
$<BUILD_INTERFACE:${_asio_local}>
46+
)
4547
target_compile_definitions(${onto} ${link_scope} VIX_ASYNC_WITH_ASIO=1)
4648
message(STATUS "[async] Asio: using module-local Asio at ${_asio_local}")
4749
return()

0 commit comments

Comments
 (0)