From 509dbaeea9c1f6f810f4dbc7ba5aada834822e8b Mon Sep 17 00:00:00 2001
From: Rashad Kanavath <rashad.kanavath@c-s.fr>
Date: Mon, 28 Aug 2017 15:00:50 +0200
Subject: [PATCH] ENH: avoid rewriting OTBOpenGL.cmake

---
 Packaging/patch_cmake_files.cmake | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/Packaging/patch_cmake_files.cmake b/Packaging/patch_cmake_files.cmake
index a8a662aa7c..49ee420898 100644
--- a/Packaging/patch_cmake_files.cmake
+++ b/Packaging/patch_cmake_files.cmake
@@ -47,17 +47,17 @@ function(patch_cmake_files)
 
   install_without_message("${PATCH_STAGE_DIR}" "lib/cmake")
 
-  file( GLOB otb_opengl
-    "${SUPERBUILD_INSTALL_DIR}/lib/cmake/OTB*/Modules/OTBOpenGL.cmake" )
-  if(EXISTS ${otb_opengl})
-    file(STRINGS "${otb_opengl}" otb_opengl_cmake)
-    set(otb_opengl_cmake_NEW)
-    foreach(line ${otb_opengl_cmake})
-      if( NOT line MATCHES "/usr")
-	list(APPEND otb_opengl_cmake_NEW "${line}\n")
-      endif()
-    endforeach()
-  endif()
-  file(WRITE "${otb_opengl}" ${otb_opengl_cmake_NEW})
+  # file( GLOB otb_opengl
+  #   "${SUPERBUILD_INSTALL_DIR}/lib/cmake/OTB*/Modules/OTBOpenGL.cmake" )
+  # if(EXISTS ${otb_opengl})
+  #   file(STRINGS "${otb_opengl}" otb_opengl_cmake)
+  #   set(otb_opengl_cmake_NEW)
+  #   foreach(line ${otb_opengl_cmake})
+  #     if( NOT line MATCHES "/usr")
+  # 	list(APPEND otb_opengl_cmake_NEW "${line}\n")
+  #     endif()
+  #   endforeach()
+  # endif()
+  # file(WRITE "${otb_opengl}" ${otb_opengl_cmake_NEW})
   
 endfunction()
-- 
GitLab