Skip to content

Commit 1bfa4af

Browse files
committed
updated readme
fixed namespace for alias library
1 parent 7f27798 commit 1bfa4af

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ else()
4343
endif()
4444

4545
add_library(${PROJECT_NAME} INTERFACE)
46-
add_library(${PROJECT_NAME}::${PROJECT_NAME} ALIAS ${PROJECT_NAME})
46+
add_library("oryx::${PROJECT_NAME}" ALIAS ${PROJECT_NAME})
4747

4848
target_sources(${PROJECT_NAME}
4949
INTERFACE

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,21 @@ Or with FetchContent API:
8888

8989
```cmake
9090
include(FetchContent)
91+
9192
FetchContent_Declare(
9293
kvdb-cpp
9394
GIT_REPOSITORY https://github.com/BestITUserEUW/kvdb-cpp.git
9495
GIT_TAG main
9596
OVERRIDE_FIND_PACKAGE
9697
EXCLUDE_FROM_ALL
9798
)
98-
FetchContent_MakeAvailable(kvdb-cpp)
99-
target_link_libraries(your_exe kvdb-cpp)
99+
FetchContent_MakeAvailable(oryx-crt-cpp)
100+
101+
find_package(kvdb-cpp REQUIRED)
102+
103+
target_link_libraries(my_project PUBLIC
104+
oryx::kvdb-cpp
105+
)
100106
```
101107

102108
Alternatively if you already have leveldb and reflect-cpp linking to your project you can just drop in `include/key_value_database.hpp` into your project.

0 commit comments

Comments
 (0)