diff options
authorRoss Burton <>2016-09-13 15:57:03 +0100
committerRichard Purdie <>2016-09-16 15:15:33 +0100
commitf9366799aaf4ad2b98345743c7129fa94d092880 (patch)
parentf863b227e22b67ab239ee6124471fdc14de3f017 (diff)
cmake-native: rationalise system/internal library dependencies
By default cmake will auto-detect if a library is present on the host and if it isn't present will use an internal fork. For some libraries using the internal fork is preferable as it can be built with less dependencies, but for others we're either already building it or the impact of building it is comparable to internal build. Continue to use the internal fork of libarchive as our libarchive-native has a large number of build dependencies. Using the internal libarchive means that system bzip2 and zlib must be used. Explicitly use the internal fork of jsoncpp as we don't have this in oe-core. Explicitly depend on curl-native, expat-native, and xz-native to ensure these dependencies are not floating. curl-native is a non-trivial dependency but is comparable to building the internal fork, so there's no reason to build it twice. Change bzip2-native to bzip2-replacement-native as bzip2-native is ASSUME_PROVIDED. [ YOCTO #9639 ] Signed-off-by: Ross Burton <>
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/recipes-devtools/cmake/ b/meta/recipes-devtools/cmake/
index f3a485fc0e..a301ae664c 100644
--- a/meta/recipes-devtools/cmake/
+++ b/meta/recipes-devtools/cmake/
@@ -1,8 +1,7 @@
inherit native
-# Using cmake's internal libarchive, so some dependencies are needed
-DEPENDS += "bzip2-native zlib-native"
+DEPENDS += "bzip2-replacement-native expat-native xz-native zlib-native curl-native"
SRC_URI += "\
file://cmlibarchive-disable-ext2fs.patch \
@@ -14,6 +13,9 @@ do_configure[cleandirs] = "${B}"
# Disable ccmake since we don't depend on ncurses
-DBUILD_CursesDialog=0 \