Add SKIPPTHREAD support to cmake

This commit is contained in:
Philippe Teuwen 2020-06-09 00:39:35 +02:00
parent 6358c07ec1
commit 66505988a2

View file

@ -314,7 +314,6 @@ find_library(pm3rrg_rdv4_whereami REQUIRED)
target_link_libraries(proxmark3 PRIVATE target_link_libraries(proxmark3 PRIVATE
bz2 bz2
readline readline
pthread
m m
pm3rrg_rdv4_mbedtls pm3rrg_rdv4_mbedtls
pm3rrg_rdv4_cliparser pm3rrg_rdv4_cliparser
@ -327,6 +326,10 @@ target_link_libraries(proxmark3 PRIVATE
pm3rrg_rdv4_whereami pm3rrg_rdv4_whereami
${ADDITIONAL_LNK}) ${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. # OSX have a hard time compiling python3 dependency with older cmake.
if (PYTHON3EMBED_FOUND OR PYTHON3_FOUND) if (PYTHON3EMBED_FOUND OR PYTHON3_FOUND)
if (NOT CMAKE_VERSION VERSION_LESS 3.13) if (NOT CMAKE_VERSION VERSION_LESS 3.13)