summaryrefslogtreecommitdiff
path: root/geography/opencpn/patches/patch-src_glu_CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'geography/opencpn/patches/patch-src_glu_CMakeLists.txt')
-rw-r--r--geography/opencpn/patches/patch-src_glu_CMakeLists.txt16
1 files changed, 16 insertions, 0 deletions
diff --git a/geography/opencpn/patches/patch-src_glu_CMakeLists.txt b/geography/opencpn/patches/patch-src_glu_CMakeLists.txt
new file mode 100644
index 00000000000..c9b13d49486
--- /dev/null
+++ b/geography/opencpn/patches/patch-src_glu_CMakeLists.txt
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_glu_CMakeLists.txt,v 1.1 2016/05/25 14:38:48 bouyer Exp $
+Make sure to use our glu.h before the base libraries ones.
+
+--- src/glu/CMakeLists.txt.orig 2016-05-25 16:23:41.000000000 +0200
++++ src/glu/CMakeLists.txt 2016-05-25 16:24:01.000000000 +0200
+@@ -17,8 +17,8 @@
+ ADD_DEFINITIONS( " -g -fno-strict-aliasing -O2")
+ ENDIF(NOT WIN32 AND NOT APPLE)
+
+-INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include)
+-INCLUDE_DIRECTORIES(include)
++INCLUDE_DIRECTORIES(BEFORE ${CMAKE_SOURCE_DIR}/include)
++INCLUDE_DIRECTORIES(BEFORE include)
+
+ IF(WIN32)
+ IF(MSVC)