1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-11-06 23:49:25 +03:00

cmake: Fix build with libxslt and libxml2 as subprojects

Fixes https://gitlab.gnome.org/GNOME/libxml2/-/issues/416
This commit is contained in:
Nick Wellnhofer
2022-09-22 12:59:13 +02:00
parent a76d2d296b
commit 7bcc8dca27

View File

@@ -32,7 +32,9 @@ include(CheckSymbolExists)
include(CMakePackageConfigHelpers)
include(GNUInstallDirs)
if(NOT TARGET LibXml2)
find_package(LibXml2 CONFIG REQUIRED)
endif()
option(BUILD_SHARED_LIBS "Build shared libraries" ON)
option(LIBXSLT_WITH_DEBUGGER "Add the debugging support" ON)