summaryrefslogtreecommitdiff
path: root/indra/cmake/UI.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'indra/cmake/UI.cmake')
-rw-r--r--indra/cmake/UI.cmake12
1 files changed, 10 insertions, 2 deletions
diff --git a/indra/cmake/UI.cmake b/indra/cmake/UI.cmake
index afa1350ef0..8e6382ceeb 100644
--- a/indra/cmake/UI.cmake
+++ b/indra/cmake/UI.cmake
@@ -14,12 +14,20 @@ if (LINUX)
find_package(PkgConfig REQUIRED)
pkg_check_modules(WAYLAND_CLIENT wayland-client)
- if( WAYLAND_CLIENT_FOUND )
- target_compile_definitions( ll::uilibraries INTERFACE LL_WAYLAND=1)
+ if(WAYLAND_CLIENT_FOUND)
+ target_compile_definitions(ll::uilibraries INTERFACE LL_WAYLAND=1)
else()
message("pkgconfig could not find wayland client, compiling without full wayland support")
endif()
+ find_package(X11)
+ if(X11_FOUND)
+ target_compile_definitions(ll::uilibraries INTERFACE LL_X11=1)
+ else()
+ message("Could not find X11, compiling without full X11 support")
+ endif()
+
+
target_link_libraries( ll::uilibraries INTERFACE
ll::fontconfig
ll::freetype