From 5b3200f83979519a41ffd6a43e6ae1f2a8dff3df Mon Sep 17 00:00:00 2001 From: Sam V Date: Tue, 6 Sep 2022 20:02:45 +0200 Subject: [PATCH] Use find_dependency in PackageConfig file pboettch/json-schema-validator#207 --- nlohmann_json_schema_validatorConfig.cmake.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nlohmann_json_schema_validatorConfig.cmake.in b/nlohmann_json_schema_validatorConfig.cmake.in index c47fb16..88960cc 100644 --- a/nlohmann_json_schema_validatorConfig.cmake.in +++ b/nlohmann_json_schema_validatorConfig.cmake.in @@ -1,6 +1,7 @@ @PACKAGE_INIT@ -find_package(nlohmann_json 3.8.0 REQUIRED) +include(CMakeFindDependencyMacro) +find_dependency(nlohmann_json) include("${CMAKE_CURRENT_LIST_DIR}/nlohmann_json_schema_validatorTargets.cmake") check_required_components(