Skip to content

Commit c15d27f

Browse files
committed
fixed external_libs
1 parent 792eee9 commit c15d27f

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

cmake/external_libs.cmake

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,16 @@ find_package(GTest REQUIRED)
1818
find_package(double-conversion REQUIRED)
1919
find_package(nayuki_md5 REQUIRED)
2020

21-
# rapidjson
22-
add_library(ydb-sdk-rapidjson INTERFACE)
21+
# RapidJSON
22+
if (YDB_SDK_USE_RAPID_JSON)
23+
find_package(RapidJSON REQUIRED)
2324

24-
target_include_directories(ydb-sdk-rapidjson INTERFACE
25-
${RAPIDJSON_INCLUDE_DIRS}
26-
)
25+
add_library(RapidJSON::RapidJSON INTERFACE IMPORTED)
26+
27+
target_include_directories(RapidJSON::RapidJSON INTERFACE
28+
${RAPIDJSON_INCLUDE_DIRS}
29+
)
30+
endif ()
2731

2832
# api-common-protos
2933
if (YDB_SDK_GOOGLE_COMMON_PROTOS_TARGET)

contrib/libs/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
add_subdirectory(jwt-cpp)
22
add_subdirectory(libc_compat)
33
add_subdirectory(lzmasdk)
4+
add_subdirectory(zstd06)

0 commit comments

Comments
 (0)