Skip to content

Commit

Permalink
add import scripts for threads
Browse files Browse the repository at this point in the history
  • Loading branch information
toschmidt committed Mar 10, 2021
1 parent c55f139 commit 6eb678f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions import/threads.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
find_package(Threads REQUIRED)
set(THREADS_PREFER_PTHREAD_FLAG ON)

add_library(threads ALIAS Threads::Threads)

# set export variables
set(THREADS_LIBRARY threads)

message(STATUS "[THREADS] settings")
message(STATUS " THREADS_LIBRARY = ${THREADS_LIBRARY}")

0 comments on commit 6eb678f

Please sign in to comment.