Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/asmjit/asmjit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkobalicek <kobalicek.petr@gmail.com>2022-02-20 19:38:27 +0300
committerkobalicek <kobalicek.petr@gmail.com>2022-02-20 19:38:27 +0300
commita4e1e88374142f4a842892f9c4bd0b0776fdcd0a (patch)
treedfc1d021f46bbb53d308212bcb691d2aa6da9d40
parent62ffe595a23e8a9c582aa2505468fafa8c2a7b06 (diff)
[Bug] Do not link to pthread library on Android (there is no such library)
-rw-r--r--CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
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()