use CMAKE_INSTALL_FULL_LIBDIR in pkgconfig instead of hardcoded lib

This commit is contained in:
Pavel Solovev 2024-01-09 12:14:50 +03:00 committed by Mihai Fufezan
parent d48680678d
commit 25da0804b0
2 changed files with 2 additions and 1 deletions

View file

@ -12,6 +12,7 @@ include(GNUInstallDirs)
set(PREFIX ${CMAKE_INSTALL_PREFIX}) set(PREFIX ${CMAKE_INSTALL_PREFIX})
set(INCLUDE ${CMAKE_INSTALL_FULL_INCLUDEDIR}) set(INCLUDE ${CMAKE_INSTALL_FULL_INCLUDEDIR})
set(LIBDIR ${CMAKE_INSTALL_FULL_LIBDIR})
configure_file(hyprlang.pc.in hyprlang.pc @ONLY) configure_file(hyprlang.pc.in hyprlang.pc @ONLY)

View file

@ -1,6 +1,6 @@
prefix=@PREFIX@ prefix=@PREFIX@
includedir=@INCLUDE@ includedir=@INCLUDE@
libdir=${prefix}/lib libdir=@LIBDIR@
Name: hyprlang Name: hyprlang
URL: https://github.com/hyprwm/hyprlang URL: https://github.com/hyprwm/hyprlang