windows-amd64-prebuilt-libr.../vcpkg/ports/rocksdb/vcpkg-cmake-wrapper.cmake
2020-10-10 14:36:42 +02:00

10 lines
507 B
CMake

_find_package(${ARGS})
if(NOT TARGET RocksDB::rocksdb AND TARGET RocksDB::rocksdb-shared)
add_library(RocksDB::rocksdb INTERFACE IMPORTED)
set_target_properties(RocksDB::rocksdb PROPERTIES INTERFACE_LINK_LIBRARIES "RocksDB::rocksdb-shared")
endif()
if(TARGET RocksDB::rocksdb AND NOT TARGET RocksDB::rocksdb-shared)
add_library(RocksDB::rocksdb-shared INTERFACE IMPORTED)
set_target_properties(RocksDB::rocksdb-shared PROPERTIES INTERFACE_LINK_LIBRARIES "RocksDB::rocksdb")
endif()