only abort if SANE is required

svn path=/trunk/KDE/kdegraphics/cmake/modules/; revision=675900
This commit is contained in:
André Wöbbeking 2007-06-15 12:18:35 +00:00
parent dfed92ff84
commit 1918602496

View file

@ -39,9 +39,9 @@ if (SANE_FOUND)
message(STATUS "Found sane: ${SANE_LIBRARIES}") message(STATUS "Found sane: ${SANE_LIBRARIES}")
endif (NOT Sane_FIND_QUIETLY) endif (NOT Sane_FIND_QUIETLY)
else (SANE_FOUND) else (SANE_FOUND)
if (NOT Sane_FIND_REQUIRED) if (Sane_FIND_REQUIRED)
message(FATAL_ERROR "Did not find SANE") message(FATAL_ERROR "Did not find SANE")
endif (NOT Sane_FIND_REQUIRED) endif (Sane_FIND_REQUIRED)
endif (SANE_FOUND) endif (SANE_FOUND)
MARK_AS_ADVANCED(SANE_INCLUDE_DIR SANE_LIBRARIES SANE_LIBRARY) MARK_AS_ADVANCED(SANE_INCLUDE_DIR SANE_LIBRARIES SANE_LIBRARY)