summaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-04-20 13:35:53 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-04-20 13:35:53 +0200
commit7ec6f96d9c53f23e9137a2deea2cbf71f959534e (patch)
tree9026b2aed8decf9542500f0d44cfbce8fdbbe17c /src/CMakeLists.txt
parentd2bd3c62408945227bb13133ad6ce270851b4872 (diff)
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.
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
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