mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 01:31:48 +08:00
31aea25728
* [json-schema-validator] Add new port * [json-schema-validator] Fix string ambiguous assignment error * [json-schema-validator] Remove redundant part from patch's path * [json-schema-validator] Forward find_package() for nlohmann_json * [json-schema-validator] comment out lines from source's CMakeLists.txt * [json-schema-validator] Improve portfile.cmake and regenerate patch Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com>
15 lines
712 B
Diff
15 lines
712 B
Diff
diff --git a/nlohmann_json_schema_validatorConfig.cmake.in b/nlohmann_json_schema_validatorConfig.cmake.in
|
|
index 6ee0df2..e0315fa 100644
|
|
--- a/nlohmann_json_schema_validatorConfig.cmake.in
|
|
+++ b/nlohmann_json_schema_validatorConfig.cmake.in
|
|
@@ -7,6 +7,9 @@
|
|
get_filename_component(NLOHMANN_JSON_SCHEMA_VALIDATOR_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
|
set(NLOHMANN_JSON_SCHEMA_VALIDATOR_INCLUDE_DIRS @CONF_INCLUDE_DIRS@)
|
|
|
|
+include(CMakeFindDependencyMacro)
|
|
+find_dependency(nlohmann_json)
|
|
+
|
|
# Our library dependencies (contains definitions for IMPORTED targets)
|
|
if(NOT TARGET json-schema-validator)
|
|
include("${NLOHMANN_JSON_SCHEMA_VALIDATOR_CMAKE_DIR}/nlohmann_json_schema_validatorTargets.cmake")
|