diff --git a/src/net/CMakeLists.txt b/src/net/CMakeLists.txt index bf28d744..a7de6253 100644 --- a/src/net/CMakeLists.txt +++ b/src/net/CMakeLists.txt @@ -25,6 +25,5 @@ else() target_link_libraries(net-utils PUBLIC slirp) endif() -pkg_check_modules(ENet REQUIRED IMPORTED_TARGET libenet) -fix_interface_includes(PkgConfig::ENet) -target_link_libraries(net-utils PUBLIC PkgConfig::ENet) +find_package(ENet REQUIRED) +target_link_libraries(net-utils PUBLIC enet) diff --git a/vcpkg.json b/vcpkg.json index 507455e8..445f3139 100644 --- a/vcpkg.json +++ b/vcpkg.json @@ -4,7 +4,7 @@ "sdl2", "libarchive", "zstd", - "libenet" + "enet" ], "features": { "qt6": {