[PATCH v2 5/7] cmake: use system libuv

Ross Burton
2026-02-16T13:48:52Z

We have a recipe for libuv in oe-core, so use it in the target recipe to
avoid vendoring in more code.

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
meta/recipes-devtools/cmake/cmake_4.2.3.bb | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/meta/recipes-devtools/cmake/cmake_4.2.3.bb b/meta/recipes-devtools/cmake/cmake_4.2.3.bb
index cf559d764a0..e6abc06c85c 100644
--- a/meta/recipes-devtools/cmake/cmake_4.2.3.bb
+++ b/meta/recipes-devtools/cmake/cmake_4.2.3.bb
@@ -2,7 +2,7 @@ require cmake.inc

inherit cmake bash-completion

-DEPENDS += "curl expat zlib libarchive xz ncurses bzip2"
+DEPENDS += "curl expat zlib libarchive xz ncurses bzip2 libuv"

SRC_URI:append:class-nativesdk = " \
file://OEToolchainConfig.cmake \
@@ -15,7 +15,6 @@ LICENSE:append = " & BSD-1-Clause & MIT"
LIC_FILES_CHKSUM:append = " \
file://Utilities/cmjsoncpp/LICENSE;md5=5d73c165a0f9e86a1342f32d19ec5926 \
file://Utilities/cmlibrhash/COPYING;md5=a8c2a557a5c53b1c12cddbee98c099af \
- file://Utilities/cmlibuv/LICENSE;md5=ad93ca1fffe931537fcf64f6fcce084d \
"

# Strip ${prefix} from ${docdir}, set result into docdir_stripped
@@ -37,7 +36,6 @@ EXTRA_OECMAKE += " \
-DCMAKE_DOC_DIR=${docdir_stripped}/cmake-${CMAKE_MAJOR_VERSION} \
-DCMAKE_USE_SYSTEM_LIBRARY_JSONCPP=0 \
-DCMAKE_USE_SYSTEM_LIBRARY_CPPDAP=0 \
- -DCMAKE_USE_SYSTEM_LIBRARY_LIBUV=0 \
-DCMAKE_USE_SYSTEM_LIBRARY_LIBRHASH=0 \
-DBUILD_CursesDialog=0 \
"
--
2.43.0