File 0008-fix-clearsilver-0.11.0.patch of Package cutelyst3-qt6
From: Matthias Fehring <buschmann23@opensuse.org>
Date: 2021-08-30 21:55:00 +0200
Subject: fix usage of clearsilver 0.11.0 or newer
ClearSivler 0.11.0 and newer requires streamhtmlparser, so we have
to link to it.
---
CMakeLists.txt | 1 +
ClearSilver/CMakeLists.txt | 1 +
2 files changed, 2 insertions(+)
--- a/Cutelyst/Plugins/View/CMakeLists.txt 2021-08-30 21:35:53.804472210 +0200
+++ b/Cutelyst/Plugins/View/CMakeLists.txt 2021-08-30 21:52:32.577736772 +0200
@@ -17,6 +17,7 @@ endif ()
if (PLUGIN_VIEW_CLEARSILVER)
find_library(ClearSilver_CS libneo_cs.a)
find_library(ClearSilver_Util libneo_utl.a)
+ find_library(ClearSilver_StreamHtmlParser libstreamhtmlparser.a)
if (ClearSilver_CS AND ClearSilver_Util)
message(STATUS "PLUGIN: View::ClearSilver, enabled.")
add_subdirectory(ClearSilver)
--- a/Cutelyst/Plugins/View/ClearSilver/CMakeLists.txt 2021-08-30 21:53:19.428485940 +0200
+++ b/Cutelyst/Plugins/View/ClearSilver/CMakeLists.txt 2021-08-30 21:53:37.288009123 +0200
@@ -28,6 +28,7 @@ target_link_libraries(Cutelyst${PROJECT_
PRIVATE Cutelyst${PROJECT_VERSION_MAJOR}Qt${QT_VERSION_MAJOR}::Core
PRIVATE ${ClearSilver_CS}
PRIVATE ${ClearSilver_Util}
+ PRIVATE ${ClearSilver_StreamHtmlParser}
)
set_property(TARGET Cutelyst${PROJECT_VERSION_MAJOR}Qt${QT_VERSION_MAJOR}ViewClearSilver PROPERTY PUBLIC_HEADER ${plugin_view_clearsilver_HEADERS})