diff options
author | Sven Gothel <[email protected]> | 2021-09-18 13:36:28 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2021-09-18 13:36:28 +0200 |
commit | 7406c239f55b8e820be3a5cae88b7ecd53de76c7 (patch) | |
tree | a7b1557ea8ee9421794259b697bd7acc6cfbb07f | |
parent | 62e7ad58c1fe252fcc3fbf75c6ac8400f0cfa44d (diff) |
CMake: THREADS_PREFER_PTHREAD_FLAG ON
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 5dd5a710..0535b6dd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,7 +7,8 @@ else() message(STATUS "CMake ${CMAKE_VERSION} >= 3.18.0, good.") endif() -FIND_PACKAGE (Threads REQUIRED) +set (THREADS_PREFER_PTHREAD_FLAG ON) +find_package (Threads REQUIRED) # set(CMAKE_MESSAGE_LOG_LEVEL DEBUG) |