mirror of
https://invent.kde.org/graphics/okular
synced 2024-08-27 11:40:07 +00:00
Minor fix
Use FIND_PACKAGE_HANDLE_STANDARD_ARGS svn path=/trunk/KDE/kdegraphics/cmake/modules/; revision=702793
This commit is contained in:
parent
5a069b0543
commit
177f99bb0f
|
@ -30,19 +30,8 @@ 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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue