Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion moxygen/openmoq/transport/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
# For installed picoquic (e.g. getdeps); FetchContent builds define the target
# directly without going through find_package.
find_package(picoquic QUIET)
if(picoquic_FOUND OR TARGET picoquic::picoquic-core)
# Check for the imported target directly. picoquic_FOUND alone is not
# sufficient: upstream picoquic's cmake config (picoquic-config.cmake) sets
# picoquic_FOUND=TRUE but does not define the picoquic::picoquic-core target,
# so target_link_libraries below would fail at generate time.
if(TARGET picoquic::picoquic-core)
message(STATUS "picoquic found, building pico transport")
add_subdirectory(pico)
else()
Expand Down
Loading