From 97cbd7e80cee6c5a57c1f24b1ff67d65c5c7a53c Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Thu, 29 Jun 2023 02:39:28 +0200 Subject: Make the generated pkg-config file more reliable --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 79ce392..c9a36d6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -164,9 +164,9 @@ file (WRITE "${PROJECT_BINARY_DIR}/${PROJECT_NAME}.pc" "Name: ${PROJECT_NAME}\n" "Description: Terminal key input library\n" "Version: ${PROJECT_VERSION}\n" - "Libs: -L${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR} -l${project_LIB_NAME}\n" + "Libs: -L${CMAKE_INSTALL_FULL_LIBDIR} -l${project_LIB_NAME}\n" "Libs.private: ${lib_libraries}\n" - "Cflags: -I${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_INCLUDEDIR}/${project_INCLUDE_NAME}\n") + "Cflags: -I${CMAKE_INSTALL_FULL_INCLUDEDIR}/${project_INCLUDE_NAME}\n") install (FILES "${PROJECT_BINARY_DIR}/${PROJECT_NAME}.pc" DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig") -- cgit v1.2.3-70-g09d2