<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,22 +1,22 @@
 ###############################################################################
+#
 # CMake module to search for GeoTIFF library
 #
 # On success, the macro sets the following variables:
 # GEOTIFF_FOUND       = if the library found
-# GEOTIFF_LIBRARY     = full path to the library
+# GEOTIFF_LIBRARIES   = full path to the library
 # GEOTIFF_INCLUDE_DIR = where to find the library headers 
-#
-# On Unix, macro sets also:
-# GEOTIFF_VERSION_STRING = human-readable string containing version of the library
+# also defined, but not for general use are
+# GEOTIFF_LIBRARY, where to find the PROJ.4 library.
 #
 # Copyright (c) 2009 Mateusz Loskot &lt;mateusz@loskot.net&gt;
 #
+# Module source: http://github.com/mloskot/workshop/tree/master/cmake/
+#
 # Redistribution and use is allowed according to the terms of the BSD license.
 # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
 #
 ###############################################################################
-MESSAGE(STATUS &quot;Searching for GeoTIFF ${GeoTIFF_FIND_VERSION}+ library&quot;)
-MESSAGE(STATUS &quot;   NOTE: Required version is not checked - to be implemented&quot;)
 
 SET(GEOTIFF_NAMES geotiff)
 
@@ -58,14 +58,14 @@ ELSEIF(UNIX)
     FIND_LIBRARY(GEOTIFF_LIBRARY NAMES ${GEOTIFF_NAMES})
 
 ELSE()
-    MESSAGE(&quot;FindGeoTIFF.cmake: unrecognized or unsupported operating system (use Unix or Windows)&quot;)
+    MESSAGE(&quot;FindGeoTIFF.cmake: unrecognized or unsupported operating system&quot;)
+ENDIF()
+
+IF(GEOTIFF_FOUND)
+  SET(GEOTIFF_LIBRARIES ${GEOTIFF_LIBRARY})
 ENDIF()
 
 # Handle the QUIETLY and REQUIRED arguments and set SPATIALINDEX_FOUND to TRUE
 # if all listed variables are TRUE
 INCLUDE(FindPackageHandleStandardArgs)
 FIND_PACKAGE_HANDLE_STANDARD_ARGS(GEOTIFF DEFAULT_MSG GEOTIFF_LIBRARY GEOTIFF_INCLUDE_DIR)
-
-# TODO: Do we want to mark these as advanced? --mloskot
-# http://www.cmake.org/cmake/help/cmake2.6docs.html#command:mark_as_advanced
-#MARK_AS_ADVANCED(GEOTIFF_LIBRARY GEOTIFF_INCLUDE_DIR)</diff>
      <filename>cmake/modules/FindGeoTIFF.cmake</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>56170532a32fe25552e2c99bd579b31bea9b4ceb</id>
    </parent>
  </parents>
  <author>
    <name>Mateusz Loskot</name>
    <email>mateusz@loskot.net</email>
  </author>
  <url>http://github.com/mloskot/workshop/commit/8902683e2402a4a4c8b9dd3fbe2fa42a8af1660b</url>
  <id>8902683e2402a4a4c8b9dd3fbe2fa42a8af1660b</id>
  <committed-date>2009-10-03T09:00:51-07:00</committed-date>
  <authored-date>2009-10-03T09:00:51-07:00</authored-date>
  <message>[cmake] Added GEOTIFF_LIBRARIES variable defined by FindGeoTIFF.cmake</message>
  <tree>7d700cc1dbe7f751637b6de6f66c0a905b6a03bd</tree>
  <committer>
    <name>Mateusz Loskot</name>
    <email>mateusz@loskot.net</email>
  </committer>
</commit>
