From a49e814a80267e18cdd14d855f983ea03a1e56e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20Pereira?= Date: Tue, 7 May 2024 15:41:48 +0100 Subject: [PATCH] Fix a plugin loader runtime failure (#2061) The plugins must export the symbols to allow loading by the panel executable. CMAKE_EXECUTABLE_ENABLE_EXPORTS is too new for us. Supersedes https://github.com/lxqt/lxqt-panel/pull/2053. Fixes https://github.com/lxqt/lxqt-panel/issues/2052. --- panel/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/panel/CMakeLists.txt b/panel/CMakeLists.txt index 556d2212f..fb5651f8b 100644 --- a/panel/CMakeLists.txt +++ b/panel/CMakeLists.txt @@ -107,6 +107,8 @@ target_link_libraries(${PROJECT} ${STATIC_PLUGINS} ) +set_property(TARGET ${PROJECT} PROPERTY ENABLE_EXPORTS TRUE) + install(TARGETS ${PROJECT} RUNTIME DESTINATION bin) install(FILES ${CONFIG_FILES} DESTINATION ${CMAKE_INSTALL_DATADIR}/lxqt) install(FILES ${PUB_HEADERS} DESTINATION include/lxqt)