diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 2e4747b52..f1e6c91b8 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -42,6 +42,10 @@ else() set(libs3rdparty ${libs3rdparty} libpng) endif() +if (CMAKE_USE_PTHREADS_INIT) + set(sys_libs ${sys_libs} ${CMAKE_THREAD_LIBS_INIT}) +endif() + # All libraries for .exe files set(all_libs aseprite-library undo-lib filters-lib gui-lib gfx-lib base-lib ${libs3rdparty} allegro ${sys_libs})