From cd739ae8919c3a5b9abfa5f727dd6f937077da3b Mon Sep 17 00:00:00 2001 From: yzq <58433399+yangzq50@users.noreply.github.com> Date: Thu, 21 Dec 2023 12:31:11 +0800 Subject: [PATCH] edit CMakeLists.txt --- CMakeLists.txt | 2 ++ third_party/iresearch/core/CMakeLists.txt | 1 + 2 files changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2776fdc616..fdabb34e0f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -98,6 +98,8 @@ if ("${CMAKE_BUILD_TYPE}" STREQUAL "Debug") set(CMAKE_DEBUG_POSTFIX "") endif () +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread") + MESSAGE(STATUS "C++ Compilation flags: " ${CMAKE_CXX_FLAGS}) set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libstdc++ -static-libgcc") diff --git a/third_party/iresearch/core/CMakeLists.txt b/third_party/iresearch/core/CMakeLists.txt index a0209ea8ed..f9cfeb7400 100644 --- a/third_party/iresearch/core/CMakeLists.txt +++ b/third_party/iresearch/core/CMakeLists.txt @@ -354,6 +354,7 @@ target_link_libraries(iresearch ${SIMD_LIBRARY_STATIC} text ${LIBURING} + ${CMAKE_DL_LIBS} ) if (CLANG_TIDY_EXE)