vcpkg/ports/leveldb/fix-util-install.patch
JonLiu1993 280e7673e7
[leveldb] Install util header files (#22650)
* [leveldb] Install util header files

* update version

* update patch

* update version

* update version

* update version

* update patch

* update version

* update patch

* update version

* Apply review suggestion

* update version

* Fix conflict files

* update version

* update version

* [leveldb] Install util header files

* update version

* Add patch

* update version

---------

Co-authored-by: Zhao Liu <v-zhli17@microsoft.com>
2023-09-20 09:51:12 -07:00

17 lines
665 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 76d2e9b..f29b043 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -438,6 +438,11 @@ if(LEVELDB_INSTALL)
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/leveldb
)
+ file(GLOB HEADER_UTIL "${PROJECT_SOURCE_DIR}/util/*.h" )
+ file(GLOB HEADER_TABLE "${PROJECT_SOURCE_DIR}/table/*.h" )
+ install(FILES ${HEADER_UTIL} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/leveldb/util)
+ install(FILES ${HEADER_TABLE} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/leveldb/table)
+
include(CMakePackageConfigHelpers)
write_basic_package_version_file(
"${PROJECT_BINARY_DIR}/leveldbConfigVersion.cmake"