<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div><span style="font-family: "courier new", courier, monaco, monospace, sans-serif; font-size: 10pt;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif; font-size: 10pt;">I've just built and installed GDAL 3.5.0 on ubuntu 20.04, with cmake 3.5.0 and make. It appears that 'make install' installs needed cmake config files for GDAL:</span></div><div><blockquote><div><span style="font-family: "courier new", courier, monaco, monospace, sans-serif; font-size: 10pt;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif; font-size: 10pt;">-- Installing: /usr/local/lib/x86_64-linux-gnu/cmake/gdal/GDALConfigVersion.cmake</span></div><div><span style="font-family: "courier new", courier, monaco, monospace, sans-serif; font-size: 10pt;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif; font-size: 10pt;">-- Installing: /usr/local/lib/x86_64-linux-gnu/cmake/gdal/GDALConfig.cmake</span></div></blockquote></div><div><span style="font-family: "courier new", courier, monaco, monospace, sans-serif; font-size: 10pt;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif; font-size: 10pt;">I'm building my own project that uses GDAL. The CMakelists.txt invokes find_package() and prints out resulting variables:</span></div><div><blockquote><div><span style="font-family: "courier new", courier, monaco, monospace, sans-serif; font-size: 10pt;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif; font-size: 10pt;">find_package(GDAL CONFIG REQUIRED)</span></div><div><br></div><div><span style="font-family: "courier new", courier, monaco, monospace, sans-serif; font-size: 10pt;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif; font-size: 10pt;">if (GDAL_FOUND)</span></div><div><span style="font-family: "courier new", courier, monaco, monospace, sans-serif; font-size: 10pt;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif; font-size: 10pt;"> message("GDAL Found!")</span></div><div><span style="font-family: "courier new", courier, monaco, monospace, sans-serif; font-size: 10pt;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif; font-size: 10pt;"> message("GDAL_INCLUDE_DIRS: ${GDAL_INCLUDE_DIRS}")</span></div><div><span style="font-family: "courier new", courier, monaco, monospace, sans-serif; font-size: 10pt;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif; font-size: 10pt;"> message("GDAL_LIBRARIES: ${GDAL_LIBRARIES}")</span></div><div><span style="font-family: "courier new", courier, monaco, monospace, sans-serif; font-size: 10pt;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif; font-size: 10pt;"> message("GDAL_VERSION: ${GDAL_VERSION}")</span></div><div><span style="font-family: "courier new", courier, monaco, monospace, sans-serif; font-size: 10pt;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif; font-size: 10pt;">else()</span></div><div><span style="font-family: "courier new", courier, monaco, monospace, sans-serif; font-size: 10pt;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif; font-size: 10pt;"> message("GDAL not found")</span></div><div><span style="font-family: "courier new", courier, monaco, monospace, sans-serif; font-size: 10pt;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif; font-size: 10pt;">endif()</span></div></blockquote><div><span style="font-family: "courier new", courier, monaco, monospace, sans-serif; font-size: 10pt;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif; font-size: 10pt;">Running cmake indicates that GDAL_FOUND is true, GDAL_VERSION is set to the expected value(3.5.0), but GDAL_LIBRARIES and GDAL_INCLUDE_DIRS are empty:</span></div><div><blockquote><div><span style="font-family: "courier new", courier, monaco, monospace, sans-serif; font-size: 10pt;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif; font-size: 10pt;">GDAL Found!</span></div><div><span style="font-family: "courier new", courier, monaco, monospace, sans-serif; font-size: 10pt;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif; font-size: 10pt;">GDAL_INCLUDE_DIRS: </span></div><div><span style="font-family: "courier new", courier, monaco, monospace, sans-serif; font-size: 10pt;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif; font-size: 10pt;">GDAL_LIBRARIES: </span></div><div><span style="font-family: "courier new", courier, monaco, monospace, sans-serif; font-size: 10pt;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif; font-size: 10pt;">GDAL_LIBRARY: </span></div><div><span style="font-family: "courier new", courier, monaco, monospace, sans-serif; font-size: 10pt;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif; font-size: 10pt;">GDAL_VERSION: 3.5.0</span></div></blockquote></div><div><span style="font-family: "courier new", courier, monaco, monospace, sans-serif; font-size: 10pt;">Why are GDAL_LIBRARIES and GDAL_INCLUDE_DIR empty?</span><br></div><div><br></div><div><span style="font-family: "courier new", courier, monaco, monospace, sans-serif; font-size: 10pt;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif; font-size: 10pt;">Thanks</span></div><div><span style="font-family: "courier new", courier, monaco, monospace, sans-serif; font-size: 10pt;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif; font-size: 10pt;">Tom</span></div><div><br data-mce-bogus="1"></div><blockquote><div><br data-mce-bogus="1"></div></blockquote></div><div><br></div><div data-marker="__SIG_PRE__"><span style="font-family: "courier new", courier, monaco, monospace, sans-serif; font-size: 10pt;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif; font-size: 10pt;">--------------------------------------------------</span><br><span style="font-family: "courier new", courier, monaco, monospace, sans-serif; font-size: 10pt;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif; font-size: 10pt;">Thomas C. O'Reilly</span><br><span style="font-family: "courier new", courier, monaco, monospace, sans-serif; font-size: 10pt;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif; font-size: 10pt;">Monterey Bay Aquarium Research Institute</span><br><span style="font-family: "courier new", courier, monaco, monospace, sans-serif; font-size: 10pt;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif; font-size: 10pt;">7700 Sandholdt Road</span><br><span style="font-family: "courier new", courier, monaco, monospace, sans-serif; font-size: 10pt;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif; font-size: 10pt;">Moss Landing, California 95039-9644</span><br><span style="font-family: "courier new", courier, monaco, monospace, sans-serif; font-size: 10pt;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif; font-size: 10pt;">831-775-1766 (voice)</span><br><span style="font-family: "courier new", courier, monaco, monospace, sans-serif; font-size: 10pt;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif; font-size: 10pt;">831-775-1620 (FAX)</span><br><span style="font-family: "courier new", courier, monaco, monospace, sans-serif; font-size: 10pt;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif; font-size: 10pt;">oreilly@mbari.org (email)</span><br><span style="font-family: "courier new", courier, monaco, monospace, sans-serif; font-size: 10pt;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif; font-size: 10pt;">http://www.mbari.org (World-wide Web)</span><br><span style="font-family: "courier new", courier, monaco, monospace, sans-serif; font-size: 10pt;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif; font-size: 10pt;"> </span><br><span style="font-family: "courier new", courier, monaco, monospace, sans-serif; font-size: 10pt;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif; font-size: 10pt;">"The machine does not isolate us from the great mysteries</span><br><span style="font-family: "courier new", courier, monaco, monospace, sans-serif; font-size: 10pt;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif; font-size: 10pt;"> of nature, but plunges us more deeply into them."</span><br><span style="font-family: "courier new", courier, monaco, monospace, sans-serif; font-size: 10pt;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif; font-size: 10pt;"> </span><br><span style="font-family: "courier new", courier, monaco, monospace, sans-serif; font-size: 10pt;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif; font-size: 10pt;"> - ANTOINE DE SAINT-EXUPERY</span><br><span style="font-family: "courier new", courier, monaco, monospace, sans-serif; font-size: 10pt;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif; font-size: 10pt;"> "Wind, Sand, and Stars" (1939)</span><br><span style="font-family: "courier new", courier, monaco, monospace, sans-serif; font-size: 10pt;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif; font-size: 10pt;"> </span></div></div></body></html>