From 1370237ec03b73a5516807a464056b83a6bec517 Mon Sep 17 00:00:00 2001 From: Guillaume Communie Date: Wed, 5 Oct 2022 17:55:07 +0200 Subject: [PATCH] Enable export of symbols from executable The export of symbols from the executables was disabled with cmake 3.4. This was preventing the loading of dynamic plugins in stellarium. see https://cmake.org/cmake/help/v3.4/policy/CMP0065.html --- src/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 2a74ac3b2bc53..e0b39346d9483 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -532,6 +532,8 @@ IF(ENABLE_SHOWMYSKY) TARGET_INCLUDE_DIRECTORIES(stelMain PRIVATE "${ShowMySky_INCLUDE_DIRECTORIES}") ENDIF() +SET_TARGET_PROPERTIES(stellarium PROPERTIES ENABLE_EXPORTS TRUE) + ADD_DEPENDENCIES(stellarium AllStaticPlugins) # Adding manifest