diff options
| author | UjinT34 <41110182+UjinT34@users.noreply.github.com> | 2026-04-29 16:31:48 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-29 14:31:48 +0100 |
| commit | 202cf48ecf627839c0a7433cbeb018c744214390 (patch) | |
| tree | 50a1c47e4f59d1e8a989def8153cf2a92c099c73 | |
| parent | 7179a38c5feea9ba5e2d38373b5e34041c0d9f25 (diff) | |
cmakelists: search for any possible lua package name (#14204)
| -rw-r--r-- | CMakeLists.txt | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 06cda39c..d32bc545 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( |
