From 0c715b46c65a83b46d2ef028f3b9df0be009a821 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20V=C3=A1rady?= Date: Tue, 9 Aug 2016 17:31:19 +0200 Subject: [PATCH] pkgconfig: fix the installation path of criterion.pc (#140) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If ${CMAKE_INSTALL_PREFIX} is mentioned explicitly in the install() command, the generated cmake_install.cmake file will contain a hard-coded value. This can cause installation errors during debian package generation, since the 'cmake -DCMAKE_INSTALL_PREFIX=../debian/tmp/usr -P cmake_install.cmake' command is used in debian/rules (this command overrides CMAKE_INSTALL_PREFIX). Signed-off-by: László Várady --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 6774c80..28361d1 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -139,7 +139,7 @@ configure_file( @ONLY ) -install (FILES "${CMAKE_CURRENT_BINARY_DIR}/criterion.pc" DESTINATION "${CMAKE_INSTALL_PREFIX}/share/pkgconfig") +install (FILES "${CMAKE_CURRENT_BINARY_DIR}/criterion.pc" DESTINATION "share/pkgconfig") set (SOURCE_FILES ${SOURCE_FILES} PARENT_SCOPE) set (INTERFACE_FILES ${INTERFACE_FILES} PARENT_SCOPE)