diff options
Diffstat (limited to 'CMake/fl_create_example.cmake')
| -rw-r--r-- | CMake/fl_create_example.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/CMake/fl_create_example.cmake b/CMake/fl_create_example.cmake index 6ea1ff141..be1b27608 100644 --- a/CMake/fl_create_example.cmake +++ b/CMake/fl_create_example.cmake @@ -119,6 +119,11 @@ function (CREATE_EXAMPLE NAME SOURCES LIBRARIES) set_target_properties (${TARGET_NAME} PROPERTIES OUTPUT_NAME ${NAME}) target_link_libraries (${TARGET_NAME} ${LIBRARIES}) + # make sure we're "exporting" global symbols like 'fl_disable_wayland', + # see also README.Wayland.txt and CMake policy CMP0065. + + set_target_properties (${TARGET_NAME} PROPERTIES ENABLE_EXPORTS TRUE) + # we must link all programs with cairo if option CAIROEXT is enabled if (FLTK_HAVE_CAIROEXT) target_link_libraries (${TARGET_NAME} ${PKG_CAIRO_LIBRARIES}) |
