From c3eb515895aa7fd635e5bf87932d010019db0b6e Mon Sep 17 00:00:00 2001 From: georgemoralis Date: Mon, 17 Jul 2023 23:20:17 +0300 Subject: [PATCH] fixed winpthread linking --- third-party/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/third-party/CMakeLists.txt b/third-party/CMakeLists.txt index 7272a238..048fae86 100644 --- a/third-party/CMakeLists.txt +++ b/third-party/CMakeLists.txt @@ -27,6 +27,8 @@ option(ZYDIS_BUILD_EXAMPLES "" OFF) set(zydis_DIR ${CMAKE_CURRENT_SOURCE_DIR}/zydis) add_subdirectory(${zydis_DIR}) +#========== winpthreads ====================== +add_subdirectory(winpthread) #=================== IMGUI =================== set(IMGUI_DIR ${CMAKE_CURRENT_SOURCE_DIR}/imgui) @@ -56,6 +58,6 @@ find_package(OpenGL REQUIRED) target_link_libraries(IMGUI PUBLIC ${OPENGL_LIBRARIES}) -target_link_libraries(IMGUI PUBLIC SDL3-shared ${CMAKE_DL_LIBS} Zydis) +target_link_libraries(IMGUI PUBLIC SDL3-shared ${CMAKE_DL_LIBS} Zydis winpthread)