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>
Please see
https://git.yoctoproject.org/poky/commit/?id=4dd321f8b83afecd962393101b2a6861275b5265
for what changes are needed, and sed commands that can be used to make them en masse.
I've verified that bitbake -c patch world works with these, but did not run a world
build; the majority of recipes shouldn't need further fixups, but if there are
some that still fall out, they can be fixed in followups.
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>