File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -44,18 +44,23 @@ set (RAPIDJSON_ENABLE_INSTRUMENTATION_OPT OFF CACHE BOOL "" FORCE)
44
44
45
45
FetchContent_Declare(
46
46
rapidjson
47
+ # GIT_TAG f9d53419e912910fd8fa57d5705fa41425428c35 - latest but broken revision
47
48
URL https://github.com/Tencent/rapidjson/archive/973dc9c06dcd3d035ebd039cfb9ea457721ec213.tar.gz
48
49
URL_HASH SHA256=d0c9e52823d493206eb721d38cb3a669ca0212360862bd15a3c2f7d35ea7c6f7
49
50
)
50
- # GIT_TAG f9d53419e912910fd8fa57d5705fa41425428c35 - latest but broken revision
51
51
FetchContent_MakeAvailable(rapidjson)
52
- find_package (RapidJSON REQUIRED)
52
+
53
+ find_package (RapidJSON REQUIRED
54
+ PATHS "${rapidjson_BINARY_DIR} "
55
+ NO_DEFAULT_PATH)
56
+
53
57
add_library (RapidJson INTERFACE )
54
58
target_include_directories (RapidJson
55
59
INTERFACE
56
60
$<BUILD_INTERFACE:${RapidJSON_INCLUDE_DIR} >
57
61
$<INSTALL_INTERFACE:include >
58
62
)
63
+
59
64
if (JINJA2CPP_BUILD_TESTS)
60
65
set (JSON_BuildTests OFF CACHE BOOL "" FORCE)
61
66
set (JSON_Install OFF CACHE BOOL "" FORCE)
You can’t perform that action at this time.
0 commit comments