diff --git a/CMakeLists.txt b/CMakeLists.txt index d3478cb..3b30889 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,15 +26,15 @@ set(INDEX_CC_FILES "${INDEX_CC_FILES}" "src/ranges/range_base.cc") set(MA_CC_FILES "${MA_CC_FILES}" "${INDEX_CC_FILES}" "src/operation_utils.cc") add_executable(iutest src/ranges/tests/index_unit_test.cc ${INDEX_CC_FILES}) -target_link_libraries(iutest ${GTEST_BOTH_LIBRARIES}) +target_link_libraries(iutest ${GTEST_BOTH_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT}) add_test(NAME iutest COMMAND iutest) add_executable(mautest src/tests/ma_unit_test.cc ${MA_CC_FILES}) -target_link_libraries(mautest ${GTEST_BOTH_LIBRARIES}) +target_link_libraries(mautest ${GTEST_BOTH_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT}) add_test(NAME mautest COMMAND mautest) add_executable(oputest src/tests/op_unit_test.cc ${MA_CC_FILES}) -target_link_libraries(oputest ${GTEST_BOTH_LIBRARIES}) +target_link_libraries(oputest ${GTEST_BOTH_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT}) add_test(NAME oputest COMMAND oputest) #install(TARGETS testm DESTINATION install)