From a4e1e88374142f4a842892f9c4bd0b0776fdcd0a Mon Sep 17 00:00:00 2001 From: kobalicek Date: Sun, 20 Feb 2022 17:38:27 +0100 Subject: [PATCH] [Bug] Do not link to pthread library on Android (there is no such library) --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 50c9bcc..5d4648e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -249,7 +249,8 @@ if (ASMJIT_SANITIZE) endif() endif() -if (NOT WIN32) +# Do not link to pthread on Android as it's part of C runtime. +if (NOT WIN32 AND NOT ANDROID) list(APPEND ASMJIT_DEPS pthread) endif()