Skip to content

Commit ed2fae6

Browse files
committed
Try To fix Thread n Almalinux 8
1 parent d3b3b3e commit ed2fae6

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

test/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,12 @@ if(TEST)
7878
)
7979

8080
if(NOT gtest_disable_pthreads)
81+
find_package(Threads)
82+
# if(Threads_FOUND)
83+
# message(STATUS "Found Threads: ${CMAKE_THREAD_LIBS_INIT}")
84+
# else()
85+
# message(FATAL_ERROR "CXXGraph: Failed to find Threads library")
86+
# endif()
8187
target_link_libraries(test_exe PUBLIC Threads::Threads)
8288
endif(NOT gtest_disable_pthreads)
8389

0 commit comments

Comments
 (0)