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.

_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to