From 9c919330b9ff8ca0d5df236db654e3ce60283f54 Mon Sep 17 00:00:00 2001 From: proukornew Date: Fri, 5 May 2023 12:26:29 +0300 Subject: [PATCH] fix cmake target MSYS2 --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 76d760b..af9015d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -161,4 +161,8 @@ if (UNIX) target_link_libraries(precomp Threads::Threads) endif() +if (${CMAKE_SYSTEM_NAME} MATCHES "^MINGW") + target_link_libraries(precomp stdc++ winpthread) +endif() + install(TARGETS precomp DESTINATION bin)