We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a18e360 commit ba81e1bCopy full SHA for ba81e1b
2 files changed
lang/c++/CMakeLists.txt
@@ -309,6 +309,8 @@ install(FILES
309
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/Avro
310
)
311
312
+cmake_path(APPEND pc_install_includedir "\${prefix}" "${CMAKE_INSTALL_INCLUDEDIR}")
313
+cmake_path(APPEND pc_install_libdir "\${exec_prefix}" "${CMAKE_INSTALL_LIBDIR}")
314
configure_file(
315
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/avro-cpp.pc.in"
316
"${CMAKE_CURRENT_BINARY_DIR}/avro-cpp.pc"
lang/c++/cmake/avro-cpp.pc.in
@@ -1,6 +1,7 @@
1
prefix=@CMAKE_INSTALL_PREFIX@
2
-includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@
3
-libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@
+exec_prefix=${prefix}
+includedir=@pc_install_includedir@
4
+libdir=@pc_install_libdir@
5
6
Name: avro-cpp
7
Description: C++ library for parsing Avro data
0 commit comments