Minor fix

Use FIND_PACKAGE_HANDLE_STANDARD_ARGS

svn path=/trunk/KDE/kdegraphics/cmake/modules/; revision=702793
This commit is contained in:
Laurent Montel 2007-08-21 07:26:30 +00:00
parent 5a069b0543
commit 177f99bb0f
3 changed files with 7 additions and 18 deletions

View file

@ -30,20 +30,9 @@ else (DJVULIBRE_INCLUDE_DIR AND DJVULIBRE_LIBRARY)
)
endif(_ddjvuIncDir)
if(DJVULIBRE_INCLUDE_DIR AND DJVULIBRE_LIBRARY)
set(DJVULIBRE_FOUND TRUE)
endif(DJVULIBRE_INCLUDE_DIR AND DJVULIBRE_LIBRARY)
if (DJVULIBRE_FOUND)
if (NOT DjVuLibre_FIND_QUIETLY)
message(STATUS "Found DjVuLibre: ${DJVULIBRE_LIBRARY}")
endif (NOT DjVuLibre_FIND_QUIETLY)
else (DJVULIBRE_FOUND)
if (DjVuLibre_FIND_REQUIRED)
message(FATAL_ERROR "Could NOT find DjVuLibre")
endif (DjVuLibre_FIND_REQUIRED)
endif (DJVULIBRE_FOUND)
include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(DjVuLibre DEFAULT_MSG DJVULIBRE_INCLUDE_DIR DJVULIBRE_LIBRARY )
mark_as_advanced(DJVULIBRE_INCLUDE_DIR DJVULIBRE_LIBRARY)
endif (DJVULIBRE_INCLUDE_DIR AND DJVULIBRE_LIBRARY)

View file

@ -8,10 +8,10 @@
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
if (KADMOS_INCLUDE_DIR)
if (KADMOS_INCLUDE_DIR AND KADMOS_LIBRARY)
# Already in cache, be silent
set(Kadmos_FIND_QUIETLY TRUE)
endif (KADMOS_INCLUDE_DIR)
endif (KADMOS_INCLUDE_DIR AND KADMOS_LIBRARY)
FIND_PATH(KADMOS_INCLUDE_DIR kadmos.h)

View file

@ -9,10 +9,10 @@
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
if (SANE_INCLUDE_DIR)
if (SANE_INCLUDE_DIR AND SANE_LIBRARY)
# Already in cache, be silent
set(Sane_FIND_QUIETLY TRUE)
endif (SANE_INCLUDE_DIR)
endif (SANE_INCLUDE_DIR AND SANE_LIBRARY)
FIND_PATH(SANE_INCLUDE_DIR sane/sane.h)