Skip to content

Commit

Permalink
Link tests to pthread
Browse files Browse the repository at this point in the history
  • Loading branch information
shinaoka committed Oct 19, 2021
1 parent bf0ac53 commit 43acb36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/EnableGtests.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function(add_gtest test)
endif(${ARGC} EQUAL 2)

add_executable(${test} ${source} ${gtest_src})
target_link_libraries(${test} ${LINK_ALL})
target_link_libraries(${test} ${LINK_ALL} pthread)
add_test(NAME ${test} COMMAND ${test} ${test_xml_output})
endfunction(add_gtest)

0 comments on commit 43acb36

Please sign in to comment.