From 26b6461b246f2061333ee9f9daeccf4884ea3768 Mon Sep 17 00:00:00 2001 From: gabime Date: Sat, 13 Jan 2024 14:26:35 +0200 Subject: [PATCH] Fixed pkgconfig --- cmake/spdlog.pc.in | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/cmake/spdlog.pc.in b/cmake/spdlog.pc.in index 7ec33cee..9023ccec 100644 --- a/cmake/spdlog.pc.in +++ b/cmake/spdlog.pc.in @@ -1,13 +1,12 @@ prefix=@CMAKE_INSTALL_PREFIX@ exec_prefix=${prefix} -libdir=${exec_prefix}/lib -includedir=${prefix}/include +includedir=@PKG_CONFIG_INCLUDEDIR@ +libdir=@PKG_CONFIG_LIBDIR@ -Name: @PROJECT_NAME@ +Name: libspdlog Description: Fast C++ logging library. -URL: https://github.com/gabime/spdlog.git -Version: @PROJECT_VERSION@ - -Requires: fmt +URL: https://github.com/gabime/@PROJECT_NAME@ +Version: @SPDLOG_VERSION@ +CFlags: -I${includedir} @PKG_CONFIG_DEFINES@ Libs: -L${libdir} -lspdlog -Cflags: -I${includedir} +Requires: fmt \ No newline at end of file