diff --git a/vstgui/CMakeLists.txt b/vstgui/CMakeLists.txt index e640c10cb..efa6ce246 100644 --- a/vstgui/CMakeLists.txt +++ b/vstgui/CMakeLists.txt @@ -52,6 +52,8 @@ endfunction(vstgui_source_group_by_folder) ########################################################################################## if(LINUX) + set(THREADS_PREFER_PTHREAD_FLAG ON) + find_package(Threads REQUIRED) find_package(X11 REQUIRED) find_package(Freetype REQUIRED) find_package(PkgConfig REQUIRED) @@ -80,6 +82,7 @@ if(LINUX) ${CAIRO_LIBRARIES} ${PANGO_LIBRARIES} ${FONTCONFIG_LIBRARIES} + Threads::Threads dl ) endif()