mirror of
https://github.com/hyprwm/hyprcursor.git
synced 2024-12-22 10:19:48 +01:00
libzip 1.10.1 is not available on some distributions. This patch introduces a workaround to fix the build instead of jumping to 1.10.1 release.
This commit is contained in:
parent
0a53b9957f
commit
cab4746180
2 changed files with 6 additions and 2 deletions
|
@ -20,7 +20,7 @@ configure_file(hyprcursor.pc.in hyprcursor.pc @ONLY)
|
||||||
set(CMAKE_CXX_STANDARD 23)
|
set(CMAKE_CXX_STANDARD 23)
|
||||||
|
|
||||||
find_package(PkgConfig REQUIRED)
|
find_package(PkgConfig REQUIRED)
|
||||||
pkg_check_modules(deps REQUIRED IMPORTED_TARGET hyprlang>=0.4.2 libzip>=1.10.1 cairo librsvg-2.0 tomlplusplus)
|
pkg_check_modules(deps REQUIRED IMPORTED_TARGET hyprlang>=0.4.2 libzip cairo librsvg-2.0 tomlplusplus)
|
||||||
|
|
||||||
if(CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_BUILD_TYPE MATCHES DEBUG)
|
if(CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_BUILD_TYPE MATCHES DEBUG)
|
||||||
message(STATUS "Configuring hyprcursor in Debug")
|
message(STATUS "Configuring hyprcursor in Debug")
|
||||||
|
|
|
@ -11,6 +11,10 @@
|
||||||
#include "manifest.hpp"
|
#include "manifest.hpp"
|
||||||
#include "meta.hpp"
|
#include "meta.hpp"
|
||||||
|
|
||||||
|
#ifndef ZIP_LENGTH_TO_END
|
||||||
|
#define ZIP_LENGTH_TO_END -1
|
||||||
|
#endif
|
||||||
|
|
||||||
enum eOperation {
|
enum eOperation {
|
||||||
OPERATION_CREATE = 0,
|
OPERATION_CREATE = 0,
|
||||||
OPERATION_EXTRACT = 1,
|
OPERATION_EXTRACT = 1,
|
||||||
|
|
Loading…
Reference in a new issue