From 25da0804b00fffeee17463afd146711b4a05e77b Mon Sep 17 00:00:00 2001 From: Pavel Solovev Date: Tue, 9 Jan 2024 12:14:50 +0300 Subject: [PATCH] use CMAKE_INSTALL_FULL_LIBDIR in pkgconfig instead of hardcoded lib --- CMakeLists.txt | 1 + hyprlang.pc.in | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9d24492..60d9d48 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,6 +12,7 @@ include(GNUInstallDirs) set(PREFIX ${CMAKE_INSTALL_PREFIX}) set(INCLUDE ${CMAKE_INSTALL_FULL_INCLUDEDIR}) +set(LIBDIR ${CMAKE_INSTALL_FULL_LIBDIR}) configure_file(hyprlang.pc.in hyprlang.pc @ONLY) diff --git a/hyprlang.pc.in b/hyprlang.pc.in index 97350dc..328c94f 100644 --- a/hyprlang.pc.in +++ b/hyprlang.pc.in @@ -1,6 +1,6 @@ prefix=@PREFIX@ includedir=@INCLUDE@ -libdir=${prefix}/lib +libdir=@LIBDIR@ Name: hyprlang URL: https://github.com/hyprwm/hyprlang