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()