mirror of
https://github.com/termux/termux-packages.git
synced 2025-08-28 16:53:20 +00:00
- Similar to https://github.com/termux/termux-packages/pull/24897, but `jsoncpp` instead of `qt6-qtbase`
- Fixes this error that might occur sometimes when some projects attempt to import `jsoncpp` through CMake:
```
CMake Error at /data/data/com.termux/files/usr/lib/cmake/jsoncpp/jsoncpp-targets.cmake:94 (message):
The imported target "jsoncpp_object" references the file
"/data/data/com.termux/files/usr/lib/objects-Release/jsoncpp_object/json_reader.cpp.o"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
"/data/data/com.termux/files/usr/lib/cmake/jsoncpp/jsoncpp-targets.cmake"
but not all the files it references.
Call Stack (most recent call first):
/data/data/com.termux/files/usr/lib/cmake/jsoncpp/jsoncppConfig.cmake:30 (include)
src/cmake/FindJsonCpp.cmake:68 (find_package)
src/CMakeLists.txt:129 (find_package)
-- Configuring incomplete, errors occurred!
```
- Replaces fd1b62d216
- Found while attempting to compile this software: https://github.com/KhronosGroup/OpenXR-SDK-Source
- @truboxl wants to remove the unconventional "`lib/objects-*/*/*.c*.o`" files that have begun appearing in some packages, and after some time, I believe I have found a way to do so without causing `CMake Error` to happen - using `-DBUILD_OBJECT_LIBS=OFF` appears to be capable of removing these files, but without causing the `CMake Error`.