From 269d6aad6f88e3182ae3f1861a58fd2a05ee5685 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Thu, 3 Nov 2011 17:09:17 +0000 Subject: [PATCH] Pass GEOS version to unit tests, skip test for SPLIT when building against older geos. git-svn-id: http://svn.osgeo.org/postgis/trunk@8085 b70326c6-7e19-0410-871a-916f4a2858ee --- liblwgeom/cunit/Makefile.in | 2 +- liblwgeom/cunit/cu_split.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/liblwgeom/cunit/Makefile.in b/liblwgeom/cunit/Makefile.in index 51d95bbbb..2e9e9840d 100644 --- a/liblwgeom/cunit/Makefile.in +++ b/liblwgeom/cunit/Makefile.in @@ -11,7 +11,7 @@ # ********************************************************************** CC=@CC@ -CFLAGS=@CFLAGS@ @WARNFLAGS@ @GEOS_CPPFLAGS@ @PROJ_CPPFLAGS@ +CFLAGS=@CFLAGS@ @WARNFLAGS@ @GEOS_CPPFLAGS@ @PROJ_CPPFLAGS@ -DPOSTGIS_GEOS_VERSION=@POSTGIS_GEOS_VERSION@ LDFLAGS = @GEOS_LDFLAGS@ -lgeos_c top_builddir = @top_builddir@ SHELL = @SHELL@ diff --git a/liblwgeom/cunit/cu_split.c b/liblwgeom/cunit/cu_split.c index acad3bb00..c12a2c338 100644 --- a/liblwgeom/cunit/cu_split.c +++ b/liblwgeom/cunit/cu_split.c @@ -18,6 +18,7 @@ static void test_lwline_split_by_point_to(void) { +#if POSTGIS_GEOS_VERSION >= 33 LWLINE *line; LWPOINT *point; LWMLINE *coll; @@ -77,6 +78,7 @@ static void test_lwline_split_by_point_to(void) lwgeom_free((LWGEOM*)line); +#endif /* POSTGIS_GEOS_VERSION >= 33 */ } /* -- 2.49.0