Commit 7a013e38 authored by Christoph Feck's avatar Christoph Feck
Browse files

Require KHtml only when building CHM generator

Reviewed by: aacid

Differential Revision: D4507
parent d2578c62
......@@ -56,7 +56,6 @@ find_package(KF5 ${KF5_REQUIRED_VERSION} REQUIRED COMPONENTS
Parts
ThreadWeaver
Wallet
KHtml
WindowSystem
)
find_package(Phonon4Qt5 CONFIG REQUIRED)
......
......@@ -34,6 +34,12 @@ set_package_properties("CHM" PROPERTIES
TYPE RECOMMENDED
PURPOSE "Support CHM files in okular.")
find_package(KF5KHtml)
set_package_properties("KF5KHtml" PROPERTIES
DESCRIPTION "HTML rendering library"
TYPE RECOMMENDED
PURPOSE "Support CHM files in okular.")
find_package(DjVuLibre "3.5.17")
set_package_properties("DjVuLibre" PROPERTIES
DESCRIPTION "A library for dealing with DjVu formatted files"
......@@ -97,7 +103,7 @@ if(KF5KExiv2_FOUND)
add_subdirectory( kimgio )
endif()
if(CHM_FOUND)
if(CHM_FOUND AND KF5KHtml_FOUND)
add_subdirectory( chm )
endif(CHM_FOUND)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment