<div dir="ltr"><div>Hi</div><div><br></div><div>I am testing CMake compilation. So far so good. I am setting these CMake variables:</div><div><br></div><div><span style="font-family:monospace">GDAL_USE_EXTERNAL_LIBS=OFF // disable everything and enable only what I need<br></span></div><div><span style="font-family:monospace">GDAL_USE_ICONV=ON // otherwise it does not compile in Ubuntu 20.04<br>GDAL_USE_EXPAT=ON<br>GDAL_USE_TIFF=ON<br>GDAL_USE_GEOTIFF=ON<br>GDAL_USE_JPEG=ON<br>GDAL_USE_ZLIB=ON</span></div><div><br></div><div>As you can see, PNG is not enabled. Actually it says:<br></div><div><br></div><div><span style="font-family:monospace">-- Disabled components:</span></div><div><span style="font-family:monospace">...<br> *PNG component has been detected, but is disabled with GDAL_USE_PNG=OFF</span></div><div><br></div><div>However, in a test application, this statement works:<br></div><div></div><div><span style="font-family:monospace">nullptr != GetGDALDriverManager()->GetDriverByName("PNG")</span></div><div><br></div><div>Why is it able to return a "valid" driver for PNG, when it was not enabled in the CMake configuration?</div><div><br></div><div>Thanks.<br></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>