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)