File 003-cmake-3.5-lua-fix.patch of Package awesome

From 70d2e80b8e12758de20b49838755b896553aebcc Mon Sep 17 00:00:00 2001
From: Aire-One <aireone@aireone.xyz>
Date: Mon, 3 Nov 2025 01:06:54 +0000
Subject: [PATCH] build: enable symbol exports

Fix CMake CMP0065 policy changes.
---
 CMakeLists.txt      | 5 +++++
 awesomeConfig.cmake | 1 +
 2 files changed, 6 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index a1c05fc94a..4a4c97ea4f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -104,6 +104,11 @@ endif()
 add_executable(${PROJECT_AWE_NAME}
     ${AWE_SRCS})
 
+# Enable symbol exports for dynamically loaded modules
+# Required for CMake 3.4+ when linking against static Lua libraries on the
+# GitHub Actions where we build Lua from source as a static library.
+set_target_properties(${PROJECT_AWE_NAME} PROPERTIES ENABLE_EXPORTS ON)
+
 # CFLAGS
 set(AWESOME_C_FLAGS
     -O1 -std=gnu99 -ggdb3 -fno-strict-aliasing -Wall -Wextra
diff --git a/awesomeConfig.cmake b/awesomeConfig.cmake
index 3d78caa879..7dca1595cc 100644
--- a/awesomeConfig.cmake
+++ b/awesomeConfig.cmake
@@ -362,6 +362,7 @@ endif()
 
 # {{{ Check for LGI
 add_executable(lgi-check build-utils/lgi-check.c)
+set_target_properties(lgi-check PROPERTIES ENABLE_EXPORTS ON)
 target_link_libraries(lgi-check ${LUA_LIBRARIES})
 target_include_directories(lgi-check PRIVATE ${LUA_INCLUDE_DIR})
 add_custom_target(lgi-check-run ALL
openSUSE Build Service is sponsored by