vcpkg/ports/rttr/Fix-depends.patch
Lily 0d5fc4c6ef [rttr] Add dependency rapidjson (#9252)
* [rttr] Add dependency rapidjson

* [rttr] Modify ci.baseline.txt

* [rttr] Handle copyright
2019-12-20 12:15:14 -08:00

15 lines
502 B
Diff

diff --git a/CMake/3rd_party_libs.cmake b/CMake/3rd_party_libs.cmake
index dca5071..4dd4471 100644
--- a/CMake/3rd_party_libs.cmake
+++ b/CMake/3rd_party_libs.cmake
@@ -51,7 +51,8 @@ if (BUILD_BENCHMARKS)
find_package(Threads REQUIRED)
endif()
-set(RAPID_JSON_DIR ${RTTR_3RD_PARTY_DIR}/rapidjson-1.1.0)
+find_package(RapidJSON CONFIG REQUIRED)
+set(RAPID_JSON_DIR ${RAPIDJSON_INCLUDE_DIRS})
set(NONIUS_DIR ${RTTR_3RD_PARTY_DIR}/nonius-1.1.2)
# Prepare "Catch" library for other executables