From 56f6eaf1033ace5159edfd0182911d8fabc9c786 Mon Sep 17 00:00:00 2001 From: Simin Ghadiri Date: Tue, 23 Apr 2024 10:14:49 +0330 Subject: [PATCH] #550: Fix compiling tests issue by providing -pthread link flag. --- test/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 5ad2132b..16b1a6e0 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -11,6 +11,7 @@ add_test(NAME testxca COMMAND testxca) set_tests_properties(testxca PROPERTIES LABELS gui) add_dependencies(tests testxca) target_link_libraries(testxca ${ASAN_LIB} ${QT}::Test xcalib) +target_link_options(testxca PRIVATE -pthread) if (APPLE) target_link_libraries(testxca