summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Volk <f_l_k@t-online.de>2025-11-01 09:23:08 +0100
committerKhem Raj <raj.khem@gmail.com>2025-11-02 08:29:25 -0800
commite85e35a7c6d84ef00ff3e8b0f16997a0e20e29ba (patch)
treee92829998e544e4bbb57bd7d49333d826a33f0df
parent81a900903caa4b4a429ecbed425a76f19e7bd9c0 (diff)
downloadmeta-openembedded-e85e35a7c6d84ef00ff3e8b0f16997a0e20e29ba.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.bb8
1 files changed, 4 insertions, 4 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..09c7e2722c 100644
--- a/meta-oe/recipes-support/libtinyxml2/libtinyxml2_11.0.0.bb
+++ b/meta-oe/recipes-support/libtinyxml2/libtinyxml2_11.0.0.bb
@@ -10,11 +10,11 @@ SRC_URI = "git://github.com/leethomason/tinyxml2.git;branch=master;protocol=http
10 file://run-ptest" 10 file://run-ptest"
11 11
12 12
13inherit meson ptest 13inherit cmake ptest
14 14
15EXTRA_OEMESON += " \ 15EXTRA_OECMAKE += " \
16 ${@bb.utils.contains('PTEST_ENABLED', '1', '-Dtests=true', '', d)} \ 16 ${@bb.utils.contains('PTEST_ENABLED', '1', '-Dtinyxml2_BUILD_TESTING=ON', '', d)} \
17 -Ddefault_library=both \ 17 -DBUILD_SHARED_LIBS=ON \
18" 18"
19 19
20CXXFLAGS:append:libc-musl = " -D_LARGEFILE64_SOURCE" 20CXXFLAGS:append:libc-musl = " -D_LARGEFILE64_SOURCE"