pkgconfig.patch 513 B

123456789101112131415161718
  1. diff --git a/CMakeLists.txt b/CMakeLists.txt
  2. --- a/CMakeLists.txt
  3. +++ b/CMakeLists.txt
  4. @@ -512,12 +512,12 @@ endif()
  5. file(
  6. GENERATE
  7. - OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/libfolly.pc
  8. + OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/libfolly_$<CONFIG>.pc
  9. INPUT ${CMAKE_CURRENT_BINARY_DIR}/libfolly.pc.gen
  10. ${target_arg}
  11. )
  12. install(
  13. - FILES ${CMAKE_CURRENT_BINARY_DIR}/libfolly.pc
  14. + FILES ${CMAKE_CURRENT_BINARY_DIR}/libfolly_${CMAKE_BUILD_TYPE}.pc
  15. DESTINATION ${LIB_INSTALL_DIR}/pkgconfig
  16. COMPONENT dev
  17. )