summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-08-30 06:31:33 (GMT)
committerMontel Laurent <montel@kde.org>2016-08-30 06:31:33 (GMT)
commit7f3a9d3eae69d1aa9afe7c94788ec89c9a8d2481 (patch)
tree29a6a8348d5eea01d92a23a7c0bdb48e1ac1a149
parent7d025c5f77586e994e874201a6ad0d1c2d9977ac (diff)
We need to have this info here too
-rw-r--r--messageviewer/CMakeLists.txt5
-rw-r--r--messageviewer/src/config-messageviewer.h.cmake1
2 files changed, 6 insertions, 0 deletions
diff --git a/messageviewer/CMakeLists.txt b/messageviewer/CMakeLists.txt
index 4627c65..d6df4e2 100644
--- a/messageviewer/CMakeLists.txt
+++ b/messageviewer/CMakeLists.txt
@@ -16,6 +16,11 @@ remove_definitions("-DQT_NO_URL_CAST_FROM_STRING")
########### CMake Config Files ###########
set(CMAKECONFIG_INSTALL_DIR "${KDE_INSTALL_CMAKEPACKAGEDIR}/KF5MessageViewer")
+if (Qt5WebEngineWidgets_VERSION VERSION_GREATER "5.7.99")
+ set(WEBENGINEVIEWER_PRINT_SUPPORT true)
+endif()
+
+
ecm_configure_package_config_file(
"${CMAKE_CURRENT_SOURCE_DIR}/KF5MessageViewerConfig.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/KF5MessageViewerConfig.cmake"
diff --git a/messageviewer/src/config-messageviewer.h.cmake b/messageviewer/src/config-messageviewer.h.cmake
index 3052f3a..b35e9b1 100644
--- a/messageviewer/src/config-messageviewer.h.cmake
+++ b/messageviewer/src/config-messageviewer.h.cmake
@@ -1 +1,2 @@
#cmakedefine HAVE_SYS_INOTIFY_H 1
+#cmakedefine WEBENGINEVIEWER_PRINT_SUPPORT 1