From 7ec6f96d9c53f23e9137a2deea2cbf71f959534e Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Sat, 20 Apr 2024 13:35:53 +0200 Subject: Add "fl_" prefix to libdecor symbols when using the built-in copy of libdecor This allows client apps to use other versions of libdecor if they wish, just like what FLTK already does with libpng and libjpeg. --- src/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/CMakeLists.txt') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index dfbdfa235..2770e9b47 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -575,6 +575,11 @@ if(FLTK_BACKEND_WAYLAND) COMPILE_OPTIONS "${COPTS}" ) endif(USE_SYSTEM_LIBDECOR) + set_source_files_properties( + ${FLTK_SOURCE_DIR}/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx + ${FLTK_SOURCE_DIR}/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx + PROPERTIES COMPILE_DEFINITIONS "USE_SYSTEM_LIBDECOR=${USE_SYSTEM_LIBDECOR}" + ) list(APPEND CFILES scandir_posix.c -- cgit v1.2.3