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:
commit
0c4ae36392
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user