mirror of
https://github.com/RfidResearchGroup/ChameleonUltra.git
synced 2026-05-12 11:22:59 -07:00
Fix the issue where compiling on Linux does not link to the pthread library.
This commit is contained in:
@@ -35,7 +35,8 @@ if (CMAKE_SYSTEM_NAME MATCHES "Linux")
|
||||
|
||||
add_compile_options(-D_GNU_SOURCE)
|
||||
|
||||
find_package(Threads)
|
||||
find_package(Threads REQUIRED)
|
||||
set(LIBTHREAD pthread)
|
||||
elseif (CMAKE_SYSTEM_NAME MATCHES "Windows")
|
||||
MESSAGE(STATUS "Run on Windows.")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user