aboutsummaryrefslogtreecommitdiff
path: root/modules/FindTIFF.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'modules/FindTIFF.cmake')
-rw-r--r--modules/FindTIFF.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/FindTIFF.cmake b/modules/FindTIFF.cmake
index d9668ac6..6bdd53d6 100644
--- a/modules/FindTIFF.cmake
+++ b/modules/FindTIFF.cmake
@@ -10,10 +10,10 @@
# Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
# See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
-if (TIFF_INCLUDE_DIR)
+if (TIFF_INCLUDE_DIR AND TIFF_LIBRARY)
# Already in cache, be silent
set(TIFF_FIND_QUIETLY TRUE)
-endif (TIFF_INCLUDE_DIR)
+endif (TIFF_INCLUDE_DIR AND TIFF_LIBRARY)
find_path(TIFF_INCLUDE_DIR NAMES tiff.h )