1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-10-30 14:45:36 +03:00

Add missing compile definition for static builds to CMake

See libxml2 commit:

7a62870a3c
This commit is contained in:
Nick Wellnhofer
2022-07-29 14:32:16 +02:00
parent 299238165a
commit eaa5378880
2 changed files with 11 additions and 0 deletions

View File

@@ -83,6 +83,9 @@ list(APPEND LIBXSLT_INCLUDE_DIRS ${LIBXML2_INCLUDE_DIRS})
list(APPEND LIBXSLT_LIBRARIES ${LIBXML2_LIBRARIES})
if(NOT LIBXSLT_SHARED)
set(LIBXSLT_DEFINITIONS -DLIBXSLT_STATIC)
set(LIBXSLT_EXSLT_DEFINITIONS -DLIBEXSLT_STATIC)
if(LIBXSLT_WITH_CRYPTO)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR})
find_dependency(Gcrypt)