From 202cf48ecf627839c0a7433cbeb018c744214390 Mon Sep 17 00:00:00 2001 From: UjinT34 <41110182+UjinT34@users.noreply.github.com> Date: Wed, 29 Apr 2026 16:31:48 +0300 Subject: [PATCH] cmakelists: search for any possible lua package name (#14204) --- CMakeLists.txt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 06cda39c0..d32bc5455 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -270,7 +270,9 @@ pkg_check_modules( re2 muparser lcms2 - lua55) +) + +pkg_search_module(LUA REQUIRED IMPORTED_TARGET GLOBAL lua55 lua5.5 lua-55 lua-5.5 lua>=5.5 lua<5.6) find_package(hyprwayland-scanner 0.3.10 REQUIRED) @@ -288,8 +290,8 @@ add_library(hyprland_lib STATIC ${SRCFILES}) add_executable(Hyprland src/main.cpp ${TRACY_CPP_FILES}) target_link_libraries(Hyprland hyprland_lib) -target_include_directories(hyprland_lib PUBLIC ${deps_INCLUDE_DIRS}) -target_include_directories(Hyprland PUBLIC ${deps_INCLUDE_DIRS}) +target_include_directories(hyprland_lib PUBLIC ${deps_INCLUDE_DIRS} ${LUA_INCLUDE_DIRS}) +target_include_directories(Hyprland PUBLIC ${deps_INCLUDE_DIRS} ${LUA_INCLUDE_DIRS}) set(USE_GPROF OFF) @@ -423,6 +425,7 @@ target_link_libraries( PkgConfig::hyprcursor_dep PkgConfig::hyprgraphics_dep PkgConfig::deps + PkgConfig::LUA ) target_link_libraries(