archrelease: copy trunk to extra-x86_64
[arch-packages.git] / snappy / trunk / cmake_add_pkgconfig.patch
blob6c3952bdf11e7d7e4fce1cc9bc9281cc2680bd27
1 --- a/CMakeLists.txt
2 +++ b/CMakeLists.txt
3 @@ -187,6 +187,12 @@
4 "${PROJECT_BINARY_DIR}/config.h"
7 +configure_file(
8 + "${CMAKE_CURRENT_SOURCE_DIR}/snappy.pc.in"
9 + "${CMAKE_CURRENT_BINARY_DIR}/snappy.pc"
10 + @ONLY
13 # We don't want to define HAVE_ macros in public headers. Instead, we use
14 # CMake's variable substitution with 0/1 variables, which will be seen by the
15 # preprocessor as constants.
16 @@ -395,4 +401,8 @@
17 "${PROJECT_BINARY_DIR}/cmake/${PROJECT_NAME}ConfigVersion.cmake"
18 DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}"
20 + install(
21 + FILES "${PROJECT_BINARY_DIR}/snappy.pc"
22 + DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig"
23 + )
24 endif(SNAPPY_INSTALL)