[libxslt] Use config mode for package LibXml2
- From: Nick Wellnhofer <nwellnhof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxslt] Use config mode for package LibXml2
- Date: Mon, 30 Nov 2020 10:51:56 +0000 (UTC)
commit 95714adb015b479d1f01f4377ce113d0dfb5f644
Author: Markus Rickert <rickert fortiss org>
Date: Thu Nov 19 19:42:50 2020 +0100
Use config mode for package LibXml2
CMakeLists.txt | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
---
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 645abe9c..e68a84be 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -28,8 +28,7 @@ set(LIBXSLT_VERSION_EXTRA "")
set(VERSION ${LIBXSLT_DOTTED_VERSION})
set(LIBEXSLT_VERSION ${LIBEXSLT_DOTTED_VERSION})
-find_package(Iconv)
-find_package(LibXml2 REQUIRED)
+find_package(LibXml2 CONFIG REQUIRED)
find_package(Python2 COMPONENTS Interpreter Development)
find_package(Threads)
@@ -216,10 +215,6 @@ if(LIBXSLT_WITH_CRYPTO)
target_link_libraries(LibXslt PRIVATE gcrypt)
endif()
-if(Iconv_FOUND)
- target_link_libraries(LibXslt PUBLIC Iconv::Iconv)
-endif()
-
target_link_libraries(LibXslt PUBLIC LibXml2::LibXml2)
if(UNIX)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]