From 66505988a2662a154d1a60f77b73acf322c91b8d Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Tue, 9 Jun 2020 00:39:35 +0200 Subject: [PATCH] Add SKIPPTHREAD support to cmake --- client/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt index d85cfaf00..c24ef34d5 100644 --- a/client/CMakeLists.txt +++ b/client/CMakeLists.txt @@ -314,7 +314,6 @@ find_library(pm3rrg_rdv4_whereami REQUIRED) target_link_libraries(proxmark3 PRIVATE bz2 readline - pthread m pm3rrg_rdv4_mbedtls pm3rrg_rdv4_cliparser @@ -327,6 +326,10 @@ target_link_libraries(proxmark3 PRIVATE pm3rrg_rdv4_whereami ${ADDITIONAL_LNK}) +if (NOT SKIPPTHREAD EQUAL 1) + target_link_libraries(proxmark3 PRIVATE pthread) +endif (NOT SKIPPTHREAD EQUAL 1) + # OSX have a hard time compiling python3 dependency with older cmake. if (PYTHON3EMBED_FOUND OR PYTHON3_FOUND) if (NOT CMAKE_VERSION VERSION_LESS 3.13)