Skip to content
Snippets Groups Projects
Commit 4936e5c0 authored by Roger Leigh's avatar Roger Leigh
Browse files

cmake: Debug FindThreads

git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@1798745 13f79535-47bb-0310-9956-ffa450edef68
parent d630b34d
No related branches found
No related tags found
No related merge requests found
...@@ -22,6 +22,8 @@ ...@@ -22,6 +22,8 @@
option(threads "Threading support" ON) option(threads "Threading support" ON)
if(threads) if(threads)
set(THREADS_PREFER_PTHREAD_FLAG ON)
add_definitions(-D_THREAD_SAFE)
find_package(Threads) find_package(Threads)
if(TARGET Threads::Threads) if(TARGET Threads::Threads)
......
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