mirror of
https://invent.kde.org/graphics/okular
synced 2024-10-12 10:53:09 +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,20 +30,9 @@ else (DJVULIBRE_INCLUDE_DIR AND DJVULIBRE_LIBRARY)
|
||||||
)
|
)
|
||||||
endif(_ddjvuIncDir)
|
endif(_ddjvuIncDir)
|
||||||
|
|
||||||
if(DJVULIBRE_INCLUDE_DIR AND DJVULIBRE_LIBRARY)
|
include(FindPackageHandleStandardArgs)
|
||||||
set(DJVULIBRE_FOUND TRUE)
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(DjVuLibre DEFAULT_MSG DJVULIBRE_INCLUDE_DIR DJVULIBRE_LIBRARY )
|
||||||
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)
|
|
||||||
|
|
||||||
mark_as_advanced(DJVULIBRE_INCLUDE_DIR DJVULIBRE_LIBRARY)
|
mark_as_advanced(DJVULIBRE_INCLUDE_DIR DJVULIBRE_LIBRARY)
|
||||||
|
|
||||||
endif (DJVULIBRE_INCLUDE_DIR AND DJVULIBRE_LIBRARY)
|
endif (DJVULIBRE_INCLUDE_DIR AND DJVULIBRE_LIBRARY)
|
||||||
|
|
|
@ -8,10 +8,10 @@
|
||||||
# Redistribution and use is allowed according to the terms of the BSD license.
|
# Redistribution and use is allowed according to the terms of the BSD license.
|
||||||
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
|
# 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
|
# Already in cache, be silent
|
||||||
set(Kadmos_FIND_QUIETLY TRUE)
|
set(Kadmos_FIND_QUIETLY TRUE)
|
||||||
endif (KADMOS_INCLUDE_DIR)
|
endif (KADMOS_INCLUDE_DIR AND KADMOS_LIBRARY)
|
||||||
|
|
||||||
FIND_PATH(KADMOS_INCLUDE_DIR kadmos.h)
|
FIND_PATH(KADMOS_INCLUDE_DIR kadmos.h)
|
||||||
|
|
||||||
|
|
|
@ -9,10 +9,10 @@
|
||||||
# Redistribution and use is allowed according to the terms of the BSD license.
|
# Redistribution and use is allowed according to the terms of the BSD license.
|
||||||
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
|
# 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
|
# Already in cache, be silent
|
||||||
set(Sane_FIND_QUIETLY TRUE)
|
set(Sane_FIND_QUIETLY TRUE)
|
||||||
endif (SANE_INCLUDE_DIR)
|
endif (SANE_INCLUDE_DIR AND SANE_LIBRARY)
|
||||||
|
|
||||||
FIND_PATH(SANE_INCLUDE_DIR sane/sane.h)
|
FIND_PATH(SANE_INCLUDE_DIR sane/sane.h)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue