-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
makes rapidjson dependency managed at cmake level, which will make it…
… more portable on different servers (contrary to boost, likely uninstalled)
- Loading branch information
Benjamin Linard
committed
Feb 8, 2024
1 parent
3e2d844
commit 7f9fda0
Showing
2 changed files
with
25 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
include(ExternalProject) | ||
|
||
# Download RapidJSON | ||
ExternalProject_Add( | ||
rapidjson | ||
PREFIX "rapidjson" | ||
GIT_REPOSITORY "https://github.com/Tencent/rapidjson.git" | ||
GIT_TAG f54b0e47a08782a6131cc3d60f94d038fa6e0a51 | ||
TIMEOUT 10 | ||
CMAKE_ARGS | ||
-DRAPIDJSON_BUILD_TESTS=OFF | ||
-DRAPIDJSON_BUILD_DOC=OFF | ||
-DRAPIDJSON_BUILD_EXAMPLES=OFF | ||
CONFIGURE_COMMAND "" | ||
BUILD_COMMAND "" | ||
INSTALL_COMMAND "" | ||
UPDATE_COMMAND "" | ||
) | ||
|
||
# Prepare RapidJSON (RapidJSON is a header-only library) | ||
ExternalProject_Get_Property(rapidjson source_dir) | ||
set(RAPIDJSON_INCLUDE_DIRS ${source_dir}/include) |