mirror of
https://gitlab.gnome.org/GNOME/libxslt
synced 2025-08-05 23:35:48 +03:00
Update dependencies based on pkg-config definition
This commit is contained in:
committed by
Nick Wellnhofer
parent
339aeab864
commit
a1bae42b8a
@@ -78,25 +78,18 @@ include(CMakeFindDependencyMacro)
|
||||
find_dependency(LibXml2 CONFIG)
|
||||
list(APPEND LIBXSLT_INCLUDE_DIRS ${LIBXML2_INCLUDE_DIRS})
|
||||
list(APPEND LIBXSLT_LIBRARIES ${LIBXML2_LIBRARIES})
|
||||
list(APPEND LIBXSLT_EXSLT_INCLUDE_DIRS ${LIBXML2_INCLUDE_DIRS})
|
||||
list(APPEND LIBXSLT_EXSLT_LIBRARIES ${LIBXML2_LIBRARIES})
|
||||
|
||||
if(NOT @BUILD_SHARED_LIBS@)
|
||||
if(@LIBXSLT_WITH_THREADS@)
|
||||
find_dependency(Threads)
|
||||
list(APPEND LIBXSLT_LIBRARIES ${CMAKE_THREAD_LIBS_INIT})
|
||||
list(APPEND LIBXSLT_EXSLT_LIBRARIES ${CMAKE_THREAD_LIBS_INIT})
|
||||
endif()
|
||||
|
||||
if(@LIBXSLT_WITH_CRYPTO@)
|
||||
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR})
|
||||
find_dependency(Gcrypt)
|
||||
list(APPEND LIBXSLT_LIBRARIES ${GCRYPT_LIBRARIES})
|
||||
list(APPEND LIBXSLT_EXSLT_LIBRARIES ${GCRYPT_LIBRARIES})
|
||||
endif()
|
||||
|
||||
if(UNIX)
|
||||
list(APPEND LIBXSLT_LIBRARIES m)
|
||||
list(APPEND LIBXSLT_EXSLT_LIBRARIES m)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
list(APPEND LIBXSLT_EXSLT_INCLUDE_DIRS ${LIBXSLT_INCLUDE_DIRS})
|
||||
list(APPEND LIBXSLT_EXSLT_LIBRARIES ${LIBXSLT_LIBRARIES})
|
||||
|
Reference in New Issue
Block a user