Skip to content

Commit

Permalink
Add pthread link
Browse files Browse the repository at this point in the history
  • Loading branch information
veer66 committed Jan 21, 2016
1 parent ee4f3c5 commit abc8ba6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Expand Up @@ -43,6 +43,9 @@ endif(LIBLZMA_FOUND)
# for pycdec
find_package(PythonInterp 2.7 REQUIRED)

# for pthread
find_package(Threads REQUIRED)

# generate config.h
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h)

Expand Down
4 changes: 2 additions & 2 deletions klm/lm/builder/CMakeLists.txt
Expand Up @@ -24,8 +24,8 @@ set(lmplz_SRCS
sort.hh)

add_executable(lmplz ${lmplz_SRCS})
target_link_libraries(lmplz klm klm_util_double klm_util_stream klm_util ${Boost_LIBRARIES} ${ZLIB_LIBRARIES} ${BZIP2_LIBRARIES} ${LIBLZMA_LIBRARIES})
target_link_libraries(lmplz klm klm_util_double klm_util_stream klm_util ${Boost_LIBRARIES} ${ZLIB_LIBRARIES} ${BZIP2_LIBRARIES} ${LIBLZMA_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})

set(dump_counts_SRCS print.cc dump_counts_main.cc)
add_executable(dump_counts ${dump_counts_SRCS})
target_link_libraries(dump_counts klm klm_util_double klm_util_stream klm_util ${Boost_LIBRARIES} ${ZLIB_LIBRARIES} ${BZIP2_LIBRARIES} ${LIBLZMA_LIBRARIES})
target_link_libraries(dump_counts klm klm_util_double klm_util_stream klm_util ${Boost_LIBRARIES} ${ZLIB_LIBRARIES} ${BZIP2_LIBRARIES} ${LIBLZMA_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})

0 comments on commit abc8ba6

Please sign in to comment.