Skip to content

Commit b122fc1

Browse files
committed
Link in pthread since some versions of gtest need it.
1 parent 18af616 commit b122fc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unittests/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function(add_cppinterop_unittest name)
1818
target_include_directories(${name} PUBLIC ${CMAKE_CURRENT_BINARY_DIR} ${GTEST_INCLUDE_DIR})
1919
set_property(TARGET ${name} PROPERTY RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
2020

21-
target_link_libraries(${name} PUBLIC ${ARG_LIBRARIES} gtest gtest_main)
21+
target_link_libraries(${name} PUBLIC ${ARG_LIBRARIES} gtest gtest_main pthread)
2222

2323
add_test(NAME cppinterop-${name} COMMAND ${name})
2424
set_tests_properties(cppinterop-${name} PROPERTIES

0 commit comments

Comments
 (0)