vcpkg/ports/lmdb/lmdb-config.cmake
Kai Pastor 72c4037ca7
[lmdb] Update, refresh (#33967)
* [lmdb] Update, refresh

* Use getopt-win32
2023-09-27 01:22:44 -07:00

15 lines
746 B
CMake

file(READ "${CMAKE_CURRENT_LIST_DIR}/../lmdb/usage" usage)
message(WARNING "find_package(lmdb) is deprecated.\n${usage}")
include(CMakeFindDependencyMacro)
find_dependency(unofficial-lmdb ${${CMAKE_FIND_PACKAGE_NAME}_FIND_VERSION})
set(${CMAKE_FIND_PACKAGE_NAME}_INCLUDE_DIR "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/include")
set(${CMAKE_FIND_PACKAGE_NAME}_INCLUDE_DIRS "${${CMAKE_FIND_PACKAGE_NAME}_INCLUDE_DIR}")
set(${CMAKE_FIND_PACKAGE_NAME}_LIBRARIES lmdb)
string(TOUPPER "${CMAKE_FIND_PACKAGE_NAME}" UPPER_PACKAGE_NAME)
set(${UPPER_PACKAGE_NAME}_INCLUDE_DIR "${${CMAKE_FIND_PACKAGE_NAME}_INCLUDE_DIR}")
set(${UPPER_PACKAGE_NAME}_INCLUDE_DIRS "${${CMAKE_FIND_PACKAGE_NAME}_INCLUDE_DIR}")
set(${UPPER_PACKAGE_NAME}_LIBRARIES lmdb)