Skip to content

Commit

Permalink
CMake find module should look for pthreads and X11 on Linux for when …
Browse files Browse the repository at this point in the history
…TGUI was compiled statically
  • Loading branch information
texus committed Apr 20, 2024
1 parent b2e27ca commit 4a61b86
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cmake/TGUIConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,16 @@ if(@TGUI_HAS_FONT_BACKEND_SDL_TTF@)
endif()
endif()

# Search for pthreads on Linux (for FileDialog icon loader)
if(@TGUI_OS_LINUX@)
find_dependency(Threads)
endif()

# Search for X11 when a backend requires it
if(@TGUI_OS_LINUX@ AND @TGUI_USE_X11@)
find_dependency(X11)
endif()

# Choose whether the target definitions of static or shared libs must be imported
if (TGUI_STATIC_LIBRARIES)
set(TGUI_IS_FRAMEWORK_INSTALL "@TGUI_BUILD_FRAMEWORKS@")
Expand Down

0 comments on commit 4a61b86

Please sign in to comment.