[Liblas-commits] hg: switch off OSRSetEquirectangular2 checking, as it's not so r...

liblas-commits at liblas.org liblas-commits at liblas.org
Fri Nov 19 15:20:44 EST 2010


changeset 4ed519923799 in /Volumes/Data/www/liblas.org/hg
details: http://hg.liblas.orghg?cmd=changeset;node=4ed519923799
summary: switch off OSRSetEquirectangular2 checking, as it's not so reliable

diffstat:

 CMakeLists.txt |  26 +++++++++++++-------------
 1 files changed, 13 insertions(+), 13 deletions(-)

diffs (39 lines):

diff -r eabee705e0c1 -r 4ed519923799 CMakeLists.txt
--- a/CMakeLists.txt	Fri Nov 19 14:08:14 2010 -0600
+++ b/CMakeLists.txt	Fri Nov 19 14:20:23 2010 -0600
@@ -212,22 +212,22 @@
 
   find_package(GDAL 1.6.0)
 
-  if(GDAL_FOUND)
-    # Confirm required API is available
-    include(CheckFunctionExists) 
-    set(CMAKE_REQUIRED_LIBRARIES ${GDAL_LIBRARY})
-    check_function_exists(OSRSetEquirectangular2 HAVE_OSRSETEQUIRECTANGULAR2)
+#  if(GDAL_FOUND)
+#    # Confirm required API is available
+#    include(CheckFunctionExists) 
+#    set(CMAKE_REQUIRED_LIBRARIES ${GDAL_LIBRARY})
+#    check_function_exists(OSRSetEquirectangular2 HAVE_OSRSETEQUIRECTANGULAR2)
     
-    if(NOT HAVE_OSRSETEQUIRECTANGULAR2)
-      # Reset to NOT found for GDAL/OGR
-      set(GDAL_FOUND)
-      message(FATAL_ERROR
-        "Unable to find OSRSetEquirectangular2 within GDAL library at ${GDAL_INCLUDE_DIR} ${GDAL_LIBRARY}")
-    else()
+#    if(NOT HAVE_OSRSETEQUIRECTANGULAR2)
+#      # Reset to NOT found for GDAL/OGR
+#      set(GDAL_FOUND)
+#      message(FATAL_ERROR
+#        "Unable to find OSRSetEquirectangular2 within GDAL library at ${GDAL_INCLUDE_DIR} ${GDAL_LIBRARY}")
+#    else()
       include_directories(${GDAL_INCLUDE_DIR})
       add_definitions(-DHAVE_GDAL=1)
-    endif()
-  endif()
+#    endif()
+#  endif()
 
   mark_as_advanced(CLEAR GDAL_INCLUDE_DIR) 
   mark_as_advanced(CLEAR GDAL_LIBRARY) 


More information about the Liblas-commits mailing list