Skip to content
This repository was archived by the owner on Sep 19, 2020. It is now read-only.

Commit 090b39a

Browse files
committed
find Threads (pthread) package to link crunch properly
1 parent 564e09f commit 090b39a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

crunch/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
set(CMAKE_CXX_STANDARD 14)
22
set(CMAKE_CXX_STANDARD_REQUIRED ON)
33

4+
find_package (Threads)
5+
46
include_directories(
57
${CMAKE_SOURCE_DIR}/inc
68
${CMAKE_SOURCE_DIR}/crnlib
@@ -13,9 +15,7 @@ set(CRUNCH_SRCS
1315
${CMAKE_CURRENT_SOURCE_DIR}/corpus_test.cpp
1416
${CMAKE_CURRENT_SOURCE_DIR}/corpus_test.h
1517
${CMAKE_CURRENT_SOURCE_DIR}/crunch.cpp
16-
1718
)
1819

19-
add_executable(${CRUNCH_EXE_NAME} ${CRUNCH_SRCS})
20-
target_link_libraries(${CRUNCH_EXE_NAME} ${CRUNCH_LIBRARY_NAME})
21-
20+
add_executable(${CRUNCH_EXE_NAME} ${CRUNCH_SRCS})
21+
target_link_libraries(${CRUNCH_EXE_NAME} ${CRUNCH_LIBRARY_NAME} ${CMAKE_THREAD_LIBS_INIT})

0 commit comments

Comments
 (0)