Skip to content

Commit

Permalink
FindGeoTiff: bugfixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alec Leamas authored and Rasbats committed Jan 5, 2021
1 parent b10d52c commit a80a360
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmake/FindGeoTIFF.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ IF(WIN32)
IF(MINGW)
FIND_PATH(GEOTIFF_INCLUDE_DIR
geotiff.h
PATH_PREFIXES geotiff
PATH_PREFIXES geotiff libgeotiff
PATHS
/usr/local/include
/usr/include
Expand Down Expand Up @@ -53,7 +53,7 @@ IF(WIN32)

ELSEIF(UNIX)

FIND_PATH(GEOTIFF_INCLUDE_DIR geotiff.h PATH_PREFIXES geotiff PATH /usr/include/geotiff)
FIND_PATH(GEOTIFF_INCLUDE_DIR geotiff.h PATH_SUFFIXES geotiff libgeotiff)

FIND_LIBRARY(GEOTIFF_LIBRARY NAMES ${GEOTIFF_NAMES})

Expand All @@ -68,4 +68,4 @@ 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)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(GeoTIFF DEFAULT_MSG GEOTIFF_LIBRARY GEOTIFF_INCLUDE_DIR)

0 comments on commit a80a360

Please sign in to comment.