diff options
author | kobalicek <kobalicek.petr@gmail.com> | 2022-02-20 19:38:27 +0300 |
---|---|---|
committer | kobalicek <kobalicek.petr@gmail.com> | 2022-02-20 19:38:27 +0300 |
commit | a4e1e88374142f4a842892f9c4bd0b0776fdcd0a (patch) | |
tree | dfc1d021f46bbb53d308212bcb691d2aa6da9d40 | |
parent | 62ffe595a23e8a9c582aa2505468fafa8c2a7b06 (diff) |
[Bug] Do not link to pthread library on Android (there is no such library)
-rw-r--r-- | CMakeLists.txt | 3 |
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() |