From 6eb678f759ed5e9e7e8a54e7c29c093b50608bc3 Mon Sep 17 00:00:00 2001 From: Tobias Schmidt Date: Wed, 10 Mar 2021 20:57:44 +0100 Subject: [PATCH] add import scripts for threads --- import/threads.cmake | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 import/threads.cmake diff --git a/import/threads.cmake b/import/threads.cmake new file mode 100644 index 0000000..ceffd2e --- /dev/null +++ b/import/threads.cmake @@ -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}") \ No newline at end of file