<div dir="ltr"><div>Hi</div><div><br></div><div>Keep working with CMake and <span style="font-family:monospace">GDAL_USE_EXTERNAL_LIBS=OFF</span></div><div>Now I want to enable json-c</div><div><br></div><div>If I do not say anything, I get this message:</div><div><span style="font-family:monospace">-- JSONC has been found, but is disabled due to GDAL_USE_EXTERNAL_LIBS=OFF. Enable it by setting GDAL_USE_JSONC=ON</span></div><div><br></div><div>If I say <br></div><div><span style="font-family:monospace">GDAL_USE_JSONC=ON<br></span></div><div><span style="font-family:monospace">GDAL_USE_JSONC_INTERNAL=ON</span></div><div><br></div><div>the log message is</div><div><span style="font-family:monospace">-- Could NOT find JSONC (missing: JSONC_DIR)</span></div><div><span style="font-family:monospace">-- Found JSONC: /usr/lib/x86_64-linux-gnu/libjson-c.so</span></div><div>and later</div><div><span style="font-family:monospace">-- The following OPTIONAL packages have been found:</span></div><div><span style="font-family:monospace">...<br></span></div><div><span style="font-family:monospace">* JSONC                                      <br>   json-c library (external)</span></div><div><br></div><div><br></div><div>Looks like I am doing something wrong, or the "internal" configuration is ignored.</div><div><br></div><div>In my computer I have libjson-c installed, but in CI it is not. I want to reproduce the same behaviour in both.</div><div><br></div><div>Thanks<br></div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">.___ ._ ..._ .. . ._.  .___ .. __ . _. . __..  ... .... ._ .__<br>Entre dos pensamientos racionales <br>hay infinitos pensamientos irracionales.<br><br></div></div></div></div>