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.cmake13
1 files changed, 10 insertions, 3 deletions
diff --git a/indra/cmake/UI.cmake b/indra/cmake/UI.cmake
index ae039b4a47..595f394af4 100644
--- a/indra/cmake/UI.cmake
+++ b/indra/cmake/UI.cmake
@@ -6,15 +6,22 @@ include(GLIB)
add_library( ll::uilibraries INTERFACE IMPORTED )
if (LINUX)
- use_prebuilt_binary(fltk)
- target_compile_definitions(ll::uilibraries INTERFACE LL_FLTK=1 LL_X11=1 )
+ target_compile_definitions(ll::uilibraries INTERFACE LL_X11=1 )
if( USE_CONAN )
return()
endif()
+ include(FindPkgConfig)
+ pkg_check_modules(WAYLAND_CLIENT wayland-client)
+
+ 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()
+
target_link_libraries( ll::uilibraries INTERFACE
- fltk
Xrender
Xcursor
Xfixes