From a234fc316407adf6055b86f39d43e36b9fee131a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20Pereira?= Date: Mon, 6 May 2024 23:27:19 +0100 Subject: [PATCH] Fix a plugin loader runtime failure 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)