From f70a0dbc2b295a2d682953a367aa2ef0b72efb93 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Fri, 18 Oct 2024 17:31:54 +0200 Subject: [PATCH] cmake: a couple of fixes to the build system --- src/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index dc8f0682..0f4ec345 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -65,14 +65,14 @@ if (UVW_BUILD_SHARED_LIB) add_library(uvw SHARED) add_library(uvw::uvw-shared ALIAS uvw) # If libuv is not fetched by ourselves, it's the caller's responsibility to make sure of the linkage. - if(FETCH_LIBUV OR libuv_FOUND) + if(UVW_FETCH_LIBUV OR libuv_FOUND) target_link_libraries(uvw PUBLIC uv::uv-shared) endif() else() add_library(uvw STATIC) add_library(uvw::uvw-static ALIAS uvw) # If libuv is not fetched by ourselves, it's the caller's responsibility to make sure of the linkage. - if(FETCH_LIBUV OR libuv_FOUND) + if(UVW_FETCH_LIBUV OR libuv_FOUND) target_link_libraries(uvw PUBLIC uv::uv-static) endif() endif()