Closed mathstuf closed 2 years ago
https://github.com/OSGeo/gdal/pull/6032 fixes your issue. See the amended documentation in it for your "why ask?" questions.
I'd note that there's a typo in your CMake options. OGR_ENABLE_OPTIONAL_DRIVERS is not the correct name. It should be OGR_BUILD_OPTIONAL_DRIVERS=OFF. If you use that one, you won't go into the generator expression failures. This configuration (disabling GDAL optional drivers but still enabling OGR ones hadn't been tested before apparently)
Expected behavior and actual behavior.
When trying to make a minimal build, some OGR dependencies need manually turned off because their GDAL bits are disabled.
Full configure line for GDAL-specific bits:
Steps to reproduce the problem.
Use configure line above without the
OGR_ENABLE_DRIVER_*
andGDAL_ENABLE_DRIVER_*
options. Generator expressions that reference non-existent targets are used which errors out at generate time.Operating system
Linux
GDAL version and provenance
Source tarball for 3.5.1.