[gdal-dev] cmake ignores EXPAT_INCLUDE_DIR & EXPAT_LIBRARY

Even Rouault even.rouault at spatialys.com
Fri Jul 8 01:15:51 PDT 2022


> Such arguments are used by "Find-module Packages". However, the Modern 
> CMake approach for is "Config-file Packages". For expat, GDAL prefers 
> config (expat-config.cmake, expatConfig.cmake) providing targets named 
> expat::expat or EXPAT::EXPAT.
>
> To use your own expat, make sure it has a config file which it is 
> found via the search procedure, or use `EXPAT_ROOT`.
>
> You can read more in the CMake documentation for command 
> `find_package`, in cmake-packages or in "Using Dependencies Guide".

The more simple hint here to use all custom packages you've installed in 
$PREFIX would be to just specify -DCMAKE_PREFIX_PATH=$PREFIX

Even

-- 

http://www.spatialys.com
My software is free, but my time generally not.



More information about the gdal-dev mailing list