Skip to content

Commit

Permalink
build: Look for pthreads
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Kagstrom committed Jun 12, 2015
1 parent eaf1bd1 commit afd970f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ cmake_minimum_required (VERSION 2.6)
project (kcov)
set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH}
${CMAKE_CURRENT_SOURCE_DIR}/../../cmake)
find_package (Threads)
find_package (LibElf REQUIRED)
find_package (Elfutils REQUIRED)
find_package (Bfd)
Expand Down Expand Up @@ -195,11 +196,12 @@ target_link_libraries(${KCOV}
${LIBELF_LIBRARIES}
stdc++
dl
pthread
${LIBCURL_LIBRARIES}
m
${ADDRESS_VERIFIER_LIBRARIES}
${LIBZ_LIBRARIES})
${LIBZ_LIBRARIES}
${CMAKE_THREAD_LIBS_INIT}
)


install (TARGETS ${PROJECT_NAME} ${INSTALL_TARGETS_PATH})
3 changes: 2 additions & 1 deletion tools/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH}
find_package (LibElf REQUIRED)
find_package (Elfutils REQUIRED)
find_package (PkgConfig REQUIRED)
find_package (Threads)
pkg_check_modules(LIBZ REQUIRED zlib)

# ====================================
Expand Down Expand Up @@ -54,7 +55,7 @@ target_link_libraries(${LINE2ADDR}
${LIBELF_LIBRARIES}
stdc++
dl
pthread
${CMAKE_THREAD_LIBS_INIT}
m
${LIBZ_LIBRARIES})

Expand Down

0 comments on commit afd970f

Please sign in to comment.