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:
@@ -32,7 +32,9 @@ include(CheckSymbolExists)
|
|||||||
include(CMakePackageConfigHelpers)
|
include(CMakePackageConfigHelpers)
|
||||||
include(GNUInstallDirs)
|
include(GNUInstallDirs)
|
||||||
|
|
||||||
|
if(NOT TARGET LibXml2)
|
||||||
find_package(LibXml2 CONFIG REQUIRED)
|
find_package(LibXml2 CONFIG REQUIRED)
|
||||||
|
endif()
|
||||||
|
|
||||||
option(BUILD_SHARED_LIBS "Build shared libraries" ON)
|
option(BUILD_SHARED_LIBS "Build shared libraries" ON)
|
||||||
option(LIBXSLT_WITH_DEBUGGER "Add the debugging support" ON)
|
option(LIBXSLT_WITH_DEBUGGER "Add the debugging support" ON)
|
||||||
|
|||||||
Reference in New Issue
Block a user