Skip to content

Commit

Permalink
Partially working main draft
Browse files Browse the repository at this point in the history
  • Loading branch information
mcfriend99 committed Oct 12, 2024
1 parent 0a12aa5 commit fefc864
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ if(NOT "${HAVE_GETTIMEOFDAY}")
target_link_libraries(libblade PRIVATE gettimeofday)
endif()
check_function_exists("timespec_get" HAVE_TIMESPEC_GET)
target_link_libraries(libblade PRIVATE threads)

check_function_exists("utime" HAVE_UTIME)
check_function_exists("basename" HAVE_BASENAME)
Expand Down Expand Up @@ -193,7 +192,10 @@ if(UNIX)
target_link_libraries(libblade PRIVATE dl)
endif()

target_link_libraries(libblade PRIVATE pthread)
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)
target_link_libraries(libblade PRIVATE Threads::Threads)
# target_link_libraries(libblade PRIVATE pthread)
endif(UNIX)

if(WIN32)
Expand Down

0 comments on commit fefc864

Please sign in to comment.