Skip to content

Commit

Permalink
Merge pull request #1049 from bluca/cmake-local-hook-find-package
Browse files Browse the repository at this point in the history
CMake needs find_package(Threads) to link pthread
  • Loading branch information
jemc committed Jul 28, 2015
2 parents 39ed563 + 56c6252 commit 491ab44
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/CMakeLists-local.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# pthread requires special checks and flags to be added
find_package(Threads)
if(THREADS_HAVE_PTHREAD_ARG)
target_compile_options(PUBLIC czmq "-pthread")
endif()
Expand Down

0 comments on commit 491ab44

Please sign in to comment.