pkgconfig: fix the installation path of criterion.pc (#140)

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 <laszlo.varady@balabit.com>
This commit is contained in:
László Várady 2016-08-09 17:31:19 +02:00 committed by Franklin Mathieu
parent 9fbd28bf69
commit 0c715b46c6

View file

@ -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)