File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,20 +44,16 @@ endif()
4444
4545# When raster support is desired in PostGIS (i.e. when enabling OSM2PGSQL), one
4646# can populate the args with --with-gdalconfig=/path-to-gdal
47- if ( fletch_ENABLE_OSM2PGSQL )
48- if (fletch_ENABLE_GDAL)
49- set (_PostGIS_ARGS_GDAL --with-gdalconfig=${GDAL_ROOT} /bin/gdal-config)
50- list (APPEND _PostGIS_DEPENDS GDAL)
47+ if (fletch_ENABLE_GDAL)
48+ set (_PostGIS_ARGS_GDAL --with-gdalconfig=${GDAL_ROOT} /bin/gdal-config)
49+ list (APPEND _PostGIS_DEPENDS GDAL)
50+ else ()
51+ find_program (_gdal_config gdal-config )
52+ if (NOT _gdal_config)
53+ message (ERROR " GDAL is required to build PostGIS with raster support. Please enable or install." )
5154 else ()
52- find_program (_gdal_config gdal-config )
53- if (NOT _gdal_config)
54- set (_PostGIS_ARGS_GDAL --without-raster )
55- else ()
56- set (_PostGIS_ARGS_GDAL --with-gdalconfig=${_gdal_config} )
57- endif ()
55+ set (_PostGIS_ARGS_GDAL --with-gdalconfig=${_gdal_config} )
5856 endif ()
59- else ()
60- set (_PostGIS_ARGS_GDAL --without-raster )
6157endif ()
6258
6359set (_PostGIS_CONFIGURE_COMMAND
You can’t perform that action at this time.
0 commit comments