From a118ee0271f9bd4c6f0a0d42b981e7d12213799a Mon Sep 17 00:00:00 2001 From: Boris Pek Date: Fri, 23 Mar 2018 06:06:04 +0300 Subject: [PATCH] osgearth: simplify patch + update configuration options This makes https://github.com/gwaldron/osgearth/pull/1077 unnecessary --- src/osgearth-1-fixes.patch | 19 ------------------- src/osgearth.mk | 3 ++- 2 files changed, 2 insertions(+), 20 deletions(-) diff --git a/src/osgearth-1-fixes.patch b/src/osgearth-1-fixes.patch index ef745f1b..72f22828 100644 --- a/src/osgearth-1-fixes.patch +++ b/src/osgearth-1-fixes.patch @@ -42,22 +42,3 @@ index 1111111..2222222 100644 ADD_SUBDIRECTORY( tests ) ENDIF() - -From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -From: Boris Pek -Date: Thu, 22 Mar 2018 22:53:10 +0300 -Subject: [PATCH 2/2] Fixed linking of osgEarthSymbology with geos when build - as shared library - - -diff --git a/src/osgEarthSymbology/CMakeLists.txt b/src/osgEarthSymbology/CMakeLists.txt -index 1111111..2222222 100644 ---- a/src/osgEarthSymbology/CMakeLists.txt -+++ b/src/osgEarthSymbology/CMakeLists.txt -@@ -1,5 +1,6 @@ - IF (DYNAMIC_OSGEARTH) - ADD_DEFINITIONS(-DOSGEARTHSYMBOLOGY_LIBRARY) -+ ADD_DEFINITIONS(-DGEOS_INLINE) - ELSE (DYNAMIC_OSGEARTH) - ADD_DEFINITIONS(-DOSGEARTHSYMBOLOGY_LIBRARY_STATIC) - ENDIF(DYNAMIC_OSGEARTH) diff --git a/src/osgearth.mk b/src/osgearth.mk index 17b3c54c..97554197 100644 --- a/src/osgearth.mk +++ b/src/osgearth.mk @@ -15,7 +15,8 @@ define $(PKG)_BUILD -DWITH_EXTERNAL_TINYXML=OFF \ -DBUILD_OSGEARTH_EXAMPLES=OFF \ -DBUILD_APPLICATIONS=OFF \ - -DBUILD_TESTS=OFF + -DBUILD_TESTS=OFF \ + -DCMAKE_CXX_FLAGS='-DGEOS_INLINE=1' $(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)' VERBOSE=1 $(MAKE) -C '$(BUILD_DIR)' -j 1 install