-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CMake installation to ${CMAKE_INSTALL_INCLUDEDIR}/gdal
?
#9276
Comments
${CMAKE_INSTALL_INCLUDEDIR}/gdal
?
@nilsnolde Please edit the issue content to something meaningful |
yeah sorry, still writing, that was a glitch on my keyboard! |
sorry, was researching on the side, was a bit confused for a few mins :D |
The official upstream installation is in ${CMAKE_INSTALL_INCLUDEDIR}. Some distributions like Debian change it : https://salsa.debian.org/debian-gis-team/gdal/-/blob/master/debian/rules?ref_type=heads#L56 |
Yeah I saw the Debian recipe. So the only way today is to hack the CFlags to get a |
I would expect using
I don't confirm this. Doing
|
huh weird.. I'll spin up a ubuntu container and have a look, that's where our CI fails. thanks for the quick investigation! |
jep, installing
I'll close here as it's an ubuntu packaging issue.. |
Actually this was a GDAL issue which got fixed in 9579d8d in GDAL 3.8.0 |
uh, ok, thanks, was just about to flag it to ubuntu. we'll use cmake for the time being |
Expected behavior and actual behavior.
I'd expect GDAL headers to be installed to
<prefix>/include/gdal
for cmake based installations.Steps to reproduce the problem.
do a cmake build and a
cmake --install build
Operating system
any
GDAL version and provenance
in fact debian-based and fedora/OpenSUSE seem to install from their package managers to
usr/include/gdal
, but my local manjaro doesn't. neither do vcpkg & brew distributions of gdal which seem to use the cmake installation as is.tbh, it's also cluttering up the include dir quite a bit 😄
CI for our recent addition of gdal into valhalla (for isochrones as geotiff) is a little confused as to where
#include <gdal_priv.h>
from: valhalla/valhalla#4594. and I do wonder how other programs do it when they include gdal headers, e.g. QGIS includes withoutgdal/
. is everyone adding custom include search paths for debian/fedora/others? or is it just late at night and I'm blind?The text was updated successfully, but these errors were encountered: