From 15b395c983cfa261af133c1d18c8c8555a1fcdbb Mon Sep 17 00:00:00 2001
From: Thomas Geymayer <tomgey@gmail.com>
Date: Tue, 6 May 2014 01:31:49 +0200
Subject: [PATCH] CMakeLists patch not needed/fails with flightgear next

---
 download_and_compile.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/download_and_compile.sh b/download_and_compile.sh
index 5f0c856..6cfdc92 100755
--- a/download_and_compile.sh
+++ b/download_and_compile.sh
@@ -1298,7 +1298,7 @@ then
 		fi
 		
 		cd flightgear
-		if [[ $(grep -L 'list(APPEND FLTK_LIBRARIES ${CMAKE_DL_LIBS})' CMakeLists.txt) != "" ]]
+		if [[ "$STABLE" = "STABLE" && $(grep -L 'list(APPEND FLTK_LIBRARIES ${CMAKE_DL_LIBS})' CMakeLists.txt) != "" ]]
 		then
 		patch  CMakeLists.txt <<\EOF
 --- fgfs/flightgear/CMakeLists.txt_old	2013-08-04 08:59:00.614104454 -0400