[Liblas-commits] hg: build/cmake: Fixed test if ENV{OSGEO4W_ROOT} is defined in C...

liblas-commits at liblas.org liblas-commits at liblas.org
Mon Oct 19 17:15:40 EDT 2009


changeset 86bdc137f776 in /home/www/liblas.org/hg
details: http://hg.liblas.org/main/hg?cmd=changeset;node=86bdc137f776
summary: build/cmake: Fixed test if ENV{OSGEO4W_ROOT} is defined in CMake macros.

diffstat:

 build/cmake/FindGDAL.cmake         |  2 +-
 build/cmake/FindGeoTIFF.cmake      |  2 +-
 build/cmake/FindSpatialIndex.cmake |  2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diffs (36 lines):

diff -r 2f33d0723e98 -r 86bdc137f776 build/cmake/FindGDAL.cmake
--- a/build/cmake/FindGDAL.cmake	Mon Oct 19 22:00:35 2009 +0100
+++ b/build/cmake/FindGDAL.cmake	Mon Oct 19 22:15:30 2009 +0100
@@ -21,7 +21,7 @@
 IF(WIN32)
 
     SET(OSGEO4W_IMPORT_LIBRARY gdal_i)
-    IF($ENV{OSGEO4W_ROOT})
+    IF(DEFINED ENV{OSGEO4W_ROOT})
         SET(OSGEO4W_ROOT_DIR $ENV{OSGEO4W_ROOT})
         MESSAGE(STATUS "Trying OSGeo4W using environment variable OSGEO4W_ROOT=$ENV{OSGEO4W_ROOT}")
     ELSE()
diff -r 2f33d0723e98 -r 86bdc137f776 build/cmake/FindGeoTIFF.cmake
--- a/build/cmake/FindGeoTIFF.cmake	Mon Oct 19 22:00:35 2009 +0100
+++ b/build/cmake/FindGeoTIFF.cmake	Mon Oct 19 22:15:30 2009 +0100
@@ -27,7 +27,7 @@
 
 IF(WIN32)
     SET(OSGEO4W_IMPORT_LIBRARY geotiff_i)
-    IF($ENV{OSGEO4W_ROOT})
+    IF(DEFINED ENV{OSGEO4W_ROOT})
         SET(OSGEO4W_ROOT_DIR $ENV{OSGEO4W_ROOT})
         MESSAGE(STATUS "Trying OSGeo4W using environment variable OSGEO4W_ROOT=$ENV{OSGEO4W_ROOT}")
     ELSE()
diff -r 2f33d0723e98 -r 86bdc137f776 build/cmake/FindSpatialIndex.cmake
--- a/build/cmake/FindSpatialIndex.cmake	Mon Oct 19 22:00:35 2009 +0100
+++ b/build/cmake/FindSpatialIndex.cmake	Mon Oct 19 22:15:30 2009 +0100
@@ -22,7 +22,7 @@
 
 IF(WIN32)
     SET(OSGEO4W_IMPORT_LIBRARY spatialindex_i)
-    IF($ENV{OSGEO4W_ROOT})
+    IF(DEFINED ENV{OSGEO4W_ROOT})
         SET(OSGEO4W_ROOT_DIR $ENV{OSGEO4W_ROOT})
         MESSAGE(STATUS "Trying OSGeo4W using environment variable OSGEO4W_ROOT=$ENV{OSGEO4W_ROOT}")
     ELSE()


More information about the Liblas-commits mailing list