aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2023-06-29 02:39:28 +0200
committerPřemysl Eric Janouch <p@janouch.name>2023-06-29 02:39:28 +0200
commit97cbd7e80cee6c5a57c1f24b1ff67d65c5c7a53c (patch)
treec202f94456e607fbabb454e9d9cfafef2548cbaa
parent2518b53e5ae4579bf84ed58fa7a62806f64e861c (diff)
downloadtermo-97cbd7e80cee6c5a57c1f24b1ff67d65c5c7a53c.tar.gz
termo-97cbd7e80cee6c5a57c1f24b1ff67d65c5c7a53c.tar.xz
termo-97cbd7e80cee6c5a57c1f24b1ff67d65c5c7a53c.zip
Make the generated pkg-config file more reliable
-rw-r--r--CMakeLists.txt4
1 files 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")