mirror of
https://github.com/zeromq/cppzmq.git
synced 2025-05-05 00:35:32 +02:00
Merge pull request #285 from kurdybacha/pthread_link_issue
Problem #284: tests and pthread link error with with gcc
This commit is contained in:
commit
6a4fe1fdb2
@ -10,6 +10,7 @@ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR})
|
|||||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_BINDIR})
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_BINDIR})
|
||||||
|
|
||||||
include(cmake/catch.cmake)
|
include(cmake/catch.cmake)
|
||||||
|
find_package(Threads)
|
||||||
|
|
||||||
add_executable(
|
add_executable(
|
||||||
unit_tests
|
unit_tests
|
||||||
@ -28,6 +29,7 @@ target_include_directories(unit_tests PUBLIC ${CATCH_INCLUDE_DIR})
|
|||||||
target_link_libraries(
|
target_link_libraries(
|
||||||
unit_tests
|
unit_tests
|
||||||
PRIVATE cppzmq
|
PRIVATE cppzmq
|
||||||
|
PRIVATE ${CMAKE_THREAD_LIBS_INIT}
|
||||||
)
|
)
|
||||||
|
|
||||||
OPTION (COVERAGE "Enable gcda file generation needed by lcov" OFF)
|
OPTION (COVERAGE "Enable gcda file generation needed by lcov" OFF)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user