From 2a1c90eb935329fa5ad7c606459e5eb091c3e863 Mon Sep 17 00:00:00 2001 From: crueter Date: Sun, 21 Sep 2025 03:02:52 -0400 Subject: [PATCH] enet Signed-off-by: crueter --- CMakeLists.txt | 4 ++++ src/network/CMakeLists.txt | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5642cb5069..411de4620b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -449,6 +449,10 @@ if (YUZU_USE_CPM) target_include_directories(enet INTERFACE ${enet_SOURCE_DIR}/include) endif() + if (NOT TARGET enet::enet) + add_library(enet::enet ALIAS enet) + endif() + # Opus AddJsonPackage(opus) diff --git a/src/network/CMakeLists.txt b/src/network/CMakeLists.txt index 1487033b22..598cc2e1be 100644 --- a/src/network/CMakeLists.txt +++ b/src/network/CMakeLists.txt @@ -22,7 +22,7 @@ add_library(network STATIC create_target_directory_groups(network) -target_link_libraries(network PRIVATE common enet Boost::headers) +target_link_libraries(network PRIVATE common enet::enet Boost::headers) if (ENABLE_WEB_SERVICE) target_compile_definitions(network PRIVATE ENABLE_WEB_SERVICE) target_link_libraries(network PRIVATE web_service)