Skip to content

Commit

Permalink
fix linux linker error regarding pthread_create
Browse files Browse the repository at this point in the history
  • Loading branch information
scheffle committed Nov 10, 2024
1 parent 8ad738b commit 7f39b2a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vstgui/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -80,6 +82,7 @@ if(LINUX)
${CAIRO_LIBRARIES}
${PANGO_LIBRARIES}
${FONTCONFIG_LIBRARIES}
Threads::Threads
dl
)
endif()
Expand Down

0 comments on commit 7f39b2a

Please sign in to comment.