mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-17 05:37:50 +08:00
10 lines
507 B
CMake
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()
|