winpr: fix dependency in cmake generated file

When a static build was done uriparser was not taken as dependency.
This commit is contained in:
David Fort
2025-01-09 07:33:17 +01:00
parent 0758835d36
commit 6cc8398a03

View File

@@ -1,10 +1,17 @@
include(CMakeFindDependencyMacro)
if(NOT "@WITH_JSON_DISABLED@" AND NOT "@BUILD_SHARED_LIBS@")
if("@JSONC_FOUND@" AND NOT "@WITH_CJSON_REQUIRED@")
find_dependency(JSONC)
elseif("@CJSON_FOUND@")
find_dependency(cJSON)
endif()
if(NOT "@BUILD_SHARED_LIBS@")
if(NOT "@WITH_JSON_DISABLED@")
if("@JSONC_FOUND@" AND NOT "@WITH_CJSON_REQUIRED@")
find_dependency(JSONC)
elseif("@CJSON_FOUND@")
find_dependency(cJSON)
endif()
endif()
if("@WITH_URIPARSER@")
find_dependency(uriparser)
endif()
endif()
@PACKAGE_INIT@