summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Volk <f_l_k@t-online.de>2025-11-03 08:50:55 +0100
committerKhem Raj <raj.khem@gmail.com>2025-11-04 16:52:46 -0800
commitec35c8e07a76211baa50dec0a4f73fc409b6f36f (patch)
tree8b81edbc85cfb0b60c1d292b2b984daf74f550a8
parent1b1efe5db7a3836975ee7eebe67ffefb8b5a041f (diff)
downloadmeta-openembedded-ec35c8e07a76211baa50dec0a4f73fc409b6f36f.tar.gz
libtinyxml2: use cmake buildsystem
Currently tinyxml2 is built with meson, which doesn't generate files in /usr/lib/cmake Use cmake instead. This will generate files in both /usr/lib/cmake and /usr/lib/pkgconfig and allow cmake projects to find libtinyxml2. Avoids errors such as: | CMake Error at CMakeLists.txt:11 (find_package): | By not providing "FindTinyXML2.cmake" in CMAKE_MODULE_PATH this project has | asked CMake to find a package configuration file provided by "TinyXML2", | but CMake did not find one. | | Could not find a package configuration file provided by "TinyXML2" with any | of the following names: | | TinyXML2Config.cmake | tinyxml2-config.cmake | | Add the installation prefix of "TinyXML2" to CMAKE_PREFIX_PATH or set | "TinyXML2_DIR" to a directory containing one of the above files. If | "TinyXML2" provides a separate development package or SDK, be sure it has | been installed. | | | -- Configuring incomplete, errors occurred! Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-support/libtinyxml2/libtinyxml2_11.0.0.bb11
1 files changed, 5 insertions, 6 deletions
diff --git a/meta-oe/recipes-support/libtinyxml2/libtinyxml2_11.0.0.bb b/meta-oe/recipes-support/libtinyxml2/libtinyxml2_11.0.0.bb
index 89e6eca99b..d295b99f3d 100644
--- a/meta-oe/recipes-support/libtinyxml2/libtinyxml2_11.0.0.bb
+++ b/meta-oe/recipes-support/libtinyxml2/libtinyxml2_11.0.0.bb
@@ -9,14 +9,13 @@ SRCREV = "9148bdf719e997d1f474be6bcc7943881046dba1"
9SRC_URI = "git://github.com/leethomason/tinyxml2.git;branch=master;protocol=https \ 9SRC_URI = "git://github.com/leethomason/tinyxml2.git;branch=master;protocol=https \
10 file://run-ptest" 10 file://run-ptest"
11 11
12inherit cmake ptest
12 13
13inherit meson ptest 14EXTRA_OECMAKE += "${@bb.utils.contains('PTEST_ENABLED', '1', '-Dtinyxml2_BUILD_TESTING=ON', '', d)}"
14
15EXTRA_OEMESON += " \
16 ${@bb.utils.contains('PTEST_ENABLED', '1', '-Dtests=true', '', d)} \
17 -Ddefault_library=both \
18"
19 15
16PACKAGECONFIG ?= "shared-libs"
17PACKAGECONFIG[shared-libs] = "-DBUILD_SHARED_LIBS=ON,-DBUILD_SHARED_LIBS=OFF"
18
20CXXFLAGS:append:libc-musl = " -D_LARGEFILE64_SOURCE" 19CXXFLAGS:append:libc-musl = " -D_LARGEFILE64_SOURCE"
21 20
22do_install_ptest() { 21do_install_ptest() {