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

added pthread to CMakeLists.txt

parent f79cd8a1
Branches main
No related tags found
No related merge requests found
Pipeline #97195 passed
...@@ -8,6 +8,13 @@ include(CTest) ...@@ -8,6 +8,13 @@ include(CTest)
include(CheckIncludeFile) 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 # enable default internal libs
list(APPEND cdi_compile_defs 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