[gdal-dev] include paths and cmake

Kyle Shannon KShannon at gcs-research.com
Thu Nov 3 17:26:29 EDT 2011

I believe that is on the 2.0 changes list, or something along those lines.  See:


under House Keeping issues


-----Original Message-----
From: gdal-dev-bounces at lists.osgeo.org [mailto:gdal-dev-bounces at lists.osgeo.org] On Behalf Of David Burken
Sent: Thursday, November 03, 2011 3:24 PM
To: gdal-dev at lists.osgeo.org
Subject: [gdal-dev] include paths and cmake


Just wondering if you've thought about namespacing the include paths?  
That is:

#include "cpl_config.h"
#include "gdal_frmts.h"

#include <gdal/port/cpl_config.h>
#include <gdal/gcore/gdal_frmts.h>

Or (flattened):
#include <gdal/cpl_config.h>
#include <gdal/gdal_frmts.h>

This would make installs / uninstalls cleaner.  Say your install prefix is:


Then your includes go to:


Instead of straight to:

I realize this would be a big change.  Just thought since you're taking the plunge on cmake it's something to consider.

Take care,

gdal-dev mailing list
gdal-dev at lists.osgeo.org

More information about the gdal-dev mailing list