You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
788 B

  1. --- a/src/CMakeLists.txt
  2. +++ b/src/CMakeLists.txt
  3. @@ -121,9 +121,8 @@ endif(WIN32)
  4. # Install pkg-config file
  5. -set(prefix ${CMAKE_INSTALL_PREFIX})
  6. set(VERSION ${AVRO_VERSION})
  7. -configure_file(avro-c.pc.in avro-c.pc)
  8. +configure_file(avro-c.pc.in avro-c.pc @ONLY)
  9. install(FILES ${CMAKE_CURRENT_BINARY_DIR}/avro-c.pc
  10. DESTINATION lib/pkgconfig)
  11. --- a/src/avro-c.pc.in
  12. +++ b/src/avro-c.pc.in
  13. @@ -1,7 +1,12 @@
  14. +prefix=@CMAKE_INSTALL_PREFIX@
  15. +exec_prefix=@CMAKE_INSTALL_PREFIX@
  16. +libdir=${exec_prefix}/lib
  17. +includedir=${prefix}/include
  18. +
  19. Name: avro-c
  20. Description: C library for parsing Avro data
  21. Version: @VERSION@
  22. URL: http://avro.apache.org/
  23. -Libs: -L@prefix@/lib -lavro
  24. -Cflags: -I@prefix@/include
  25. +Libs: -L${libdir} -lavro
  26. +Cflags: -I${includedir}
  27. Requires: @CODEC_PKG@