1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-03-27 18:50:07 +03:00

Merge branch 'android-threading' into 'master'

build: adjust build rules for Android

See merge request GNOME/libxml2!291
This commit is contained in:
Saleem Abdulrasool 2025-03-19 10:30:59 +00:00
commit 0c4ae36392

View File

@ -120,6 +120,9 @@ if(LIBXML2_WITH_LZMA)
endif()
if(LIBXML2_WITH_THREADS)
if(ANDROID)
set(CMAKE_HAVE_LIBC_PTHREAD YES)
endif()
find_package(Threads REQUIRED)
set(THREAD_LIBS ${CMAKE_THREAD_LIBS_INIT})
list(APPEND CMAKE_REQUIRED_LIBRARIES Threads::Threads)