Generate pkg-config file via CMake (#9945)
Summary: Fixes https://github.com/facebook/rocksdb/issues/7934 Pull Request resolved: https://github.com/facebook/rocksdb/pull/9945 Test Plan: Built via Homebrew pointing to my fork/branch: ``` ~/src/github.com/facebook/fbthrift on main ❯ cat ~/.homebrew/opt/rocksdb/lib/pkgconfig/rocksdb.pc took 1h 17m 48s at 04:24:54 pm prefix="/Users/trynity/.homebrew/Cellar/rocksdb/HEAD-968e4dd" exec_prefix="${prefix}" libdir="${prefix}/lib" includedir="${prefix}/include" Name: rocksdb Description: An embeddable persistent key-value store for fast storage URL: https://rocksdb.org/ Version: 7.3.0 Cflags: -I"${includedir}" Libs: -L"${libdir}" -lrocksdb ``` Reviewed By: riversand963 Differential Revision: D36161635 Pulled By: trynity fbshipit-source-id: 0f1a9c30e43797ee65e6696896e06fde0658456emain
parent
9d634dd5b6
commit
e62c23cce4
@ -0,0 +1,11 @@ |
||||
prefix="@CMAKE_INSTALL_PREFIX@" |
||||
exec_prefix="${prefix}" |
||||
libdir="${prefix}/lib" |
||||
includedir="${prefix}/include" |
||||
|
||||
Name: @PROJECT_NAME@ |
||||
Description: @CMAKE_PROJECT_DESCRIPTION@ |
||||
URL: @CMAKE_PROJECT_HOMEPAGE_URL@ |
||||
Version: @PROJECT_VERSION@ |
||||
Cflags: -I"${includedir}" |
||||
Libs: -L"${libdir}" -lrocksdb |
Loading…
Reference in new issue