1 commit 2cd09d41ed559461a0f0a346ebec3dea82c06947
2 Author: Andreas Sturmlechner <andreas.sturmlechner@gmail.com>
3 Date: Sat Jan 21 18:26:46 2017 +0100
5 Add option to disable Qt4WebKit even if present
7 - Link against Qt4WebKit only if(HAVE_WEBKIT)
8 - Remove Qt4WebKit linking from tests
12 diff --git a/CMakeLists.txt b/CMakeLists.txt
13 index ee3d810..1acbf8a 100644
16 @@ -48,6 +48,12 @@ set(
21 + "Enable QtWebkit support"
27 "Compile multiple C++ files in one big, merged file (\"Unity build\")\nSee also http://t-fischer.dreamwidth.org/3054.html"
29 diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
30 index 04222a7..0b7be01 100644
31 --- a/src/CMakeLists.txt
32 +++ b/src/CMakeLists.txt
33 @@ -37,24 +37,41 @@ include(
34 # check if QtWebKit is available, which seems to be not available
35 # on e.g. RedHat Enterprise Linux 6 or Scientific Linux 6
42 - "Found QtWebKit, enabling WebKit support"
48 + "Found QtWebKit, enabling WebKit support"
54 + OPTIONAL_QTWEBKIT_LIBRARIES
55 + ${QT_QTWEBKIT_LIBRARIES}
64 + "QtWebKit not found, disabling WebKit support"
75 - "QtWebKit not found, disabling WebKit support"
76 + "QtWebKit support disabled by configure"
84 diff --git a/src/networking/CMakeLists.txt b/src/networking/CMakeLists.txt
85 index efa14f4..f7ade08 100644
86 --- a/src/networking/CMakeLists.txt
87 +++ b/src/networking/CMakeLists.txt
88 @@ -131,7 +131,7 @@ target_link_libraries(
92 - ${QT_QTWEBKIT_LIBRARY}
93 + ${OPTIONAL_QTWEBKIT_LIBRARIES}
96 ${POPPLER_QT4_LIBRARIES}
97 diff --git a/src/program/CMakeLists.txt b/src/program/CMakeLists.txt
98 index a9fe213..fa57506 100644
99 --- a/src/program/CMakeLists.txt
100 +++ b/src/program/CMakeLists.txt
101 @@ -65,7 +65,7 @@ kde4_add_executable(
102 target_link_libraries(
105 - ${QT_QTWEBKIT_LIBRARIES}
106 + ${OPTIONAL_QTWEBKIT_LIBRARIES}