[gdal-dev] CMake and internal json-c

Javier Jimenez Shaw j1 at jimenezshaw.com
Tue Mar 15 01:20:19 PDT 2022


Hi

Keep working with CMake and GDAL_USE_EXTERNAL_LIBS=OFF
Now I want to enable json-c

If I do not say anything, I get this message:
-- JSONC has been found, but is disabled due to GDAL_USE_EXTERNAL_LIBS=OFF.
Enable it by setting GDAL_USE_JSONC=ON

If I say
GDAL_USE_JSONC=ON
GDAL_USE_JSONC_INTERNAL=ON

the log message is
-- Could NOT find JSONC (missing: JSONC_DIR)
-- Found JSONC: /usr/lib/x86_64-linux-gnu/libjson-c.so
and later
-- The following OPTIONAL packages have been found:
...
* JSONC
   json-c library (external)


Looks like I am doing something wrong, or the "internal" configuration is
ignored.

In my computer I have libjson-c installed, but in CI it is not. I want to
reproduce the same behaviour in both.

Thanks
.___ ._ ..._ .. . ._.  .___ .. __ . _. . __..  ... .... ._ .__
Entre dos pensamientos racionales
hay infinitos pensamientos irracionales.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20220315/50181705/attachment-0001.html>


More information about the gdal-dev mailing list