Skip to content

Commit 8a6507f

Browse files
committed
custom rapidjson lib aligned with openDAQ rapidjson lib
1 parent 9c65fd7 commit 8a6507f

40 files changed

Lines changed: 19109 additions & 16 deletions

external/rapidjson/CMakeLists.txt

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,7 @@
11
opendaq_set_cmake_folder_context(TARGET_FOLDER_NAME)
2-
32
if (NOT TARGET rapidjson)
4-
set(RAPIDJSON_BUILD_DOC OFF CACHE BOOL "Disable documentation" FORCE)
5-
set(RAPIDJSON_BUILD_EXAMPLES OFF CACHE BOOL "Disable examples" FORCE)
6-
set(RAPIDJSON_BUILD_TESTS OFF CACHE BOOL "Disable tests" FORCE)
7-
8-
opendaq_dependency(
9-
NAME rapidjson
10-
REQUIRED_VERSION 1.1.0
11-
GIT_REPOSITORY https://github.com/Tencent/rapidjson.git
12-
GIT_REF v1.1.0
13-
)
14-
15-
message(STATUS "RapidJSON source directory: ${rapidjson_SOURCE_DIR}")
16-
17-
add_library(rapidjson INTERFACE)
18-
target_include_directories(rapidjson SYSTEM INTERFACE ${rapidjson_SOURCE_DIR}/include)
3+
message(STATUS "Creation the rapidjson external target")
4+
add_subdirectory(src)
5+
else()
6+
message(STATUS "Using the rapidjson external target")
197
endif()

0 commit comments

Comments
 (0)