Skip to content
Snippets Groups Projects
Commit b216d9dc authored by Oliver Heidmann's avatar Oliver Heidmann
Browse files

added pthread to CMakeLists.txt

parent bebb32b4
No related branches found
No related tags found
1 merge request!121M300433/cmake improvements and define cleanups
......@@ -8,6 +8,13 @@ include(CTest)
include(CheckIncludeFile)
# Finding libraries
### -------------- Pthread ---------------------------
message("Start check for pthread")
include(FindThreads)
find_package(Threads REQUIRED)
set_target_properties(Threads::Threads PROPERTIES THREADS_PREFER_PTHREAD_FLAG TRUE)
list(APPEND cdi_compile_defs HAVE_PTHREAD=1)
# enable default internal libs
list(APPEND cdi_compile_defs
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment