Skip to content

Instantly share code, notes, and snippets.

@scpeters
Last active August 29, 2015 13:56
Show Gist options
  • Save scpeters/9199351 to your computer and use it in GitHub Desktop.
Save scpeters/9199351 to your computer and use it in GitHub Desktop.
patch to disable GDAL on osx
diff -r d6781bae8772 cmake/SearchForStuff.cmake
--- a/cmake/SearchForStuff.cmake Mon Feb 24 09:56:33 2014 -0800
+++ b/cmake/SearchForStuff.cmake Mon Feb 24 10:24:48 2014 -0800
@@ -476,15 +476,15 @@
########################################
# Find gdal
-include (FindGDAL)
-if (NOT GDAL_FOUND)
- message (STATUS "Looking for libgdal - not found")
- BUILD_WARNING ("GDAL not found, Digital elevation terrains support will be disabled.")
- set (HAVE_GDAL OFF CACHE BOOL "HAVE GDAL" FORCE)
-else ()
- message (STATUS "Looking for libgdal - found")
- set (HAVE_GDAL ON CACHE BOOL "HAVE GDAL" FORCE)
-endif ()
+#include (FindGDAL)
+#if (NOT GDAL_FOUND)
+# message (STATUS "Looking for libgdal - not found")
+# BUILD_WARNING ("GDAL not found, Digital elevation terrains support will be disabled.")
+# set (HAVE_GDAL OFF CACHE BOOL "HAVE GDAL" FORCE)
+#else ()
+# message (STATUS "Looking for libgdal - found")
+# set (HAVE_GDAL ON CACHE BOOL "HAVE GDAL" FORCE)
+#endif ()
########################################
# Include man pages stuff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment