From d6fcacd47ab6e8d4b686212f4e7c0bd8092f7e47 Mon Sep 17 00:00:00 2001 From: Kai Pastor Date: Thu, 14 Mar 2024 09:29:49 +0100 Subject: [PATCH] Add find_dependency for link lib targets --- client/FreeRDP-ClientConfig.cmake.in | 3 +++ libfreerdp/FreeRDPConfig.cmake.in | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/client/FreeRDP-ClientConfig.cmake.in b/client/FreeRDP-ClientConfig.cmake.in index 35b74c1b1..409dbed4a 100644 --- a/client/FreeRDP-ClientConfig.cmake.in +++ b/client/FreeRDP-ClientConfig.cmake.in @@ -1,6 +1,9 @@ include(CMakeFindDependencyMacro) find_dependency(WinPR @FREERDP_VERSION@) find_dependency(FreeRDP @FREERDP_VERSION@) +if("@WITH_SMARTCARD_EMULATE@") + find_dependency(ZLIB) +endif() @PACKAGE_INIT@ diff --git a/libfreerdp/FreeRDPConfig.cmake.in b/libfreerdp/FreeRDPConfig.cmake.in index 21ecd5927..0052c3d3a 100644 --- a/libfreerdp/FreeRDPConfig.cmake.in +++ b/libfreerdp/FreeRDPConfig.cmake.in @@ -1,5 +1,11 @@ include(CMakeFindDependencyMacro) find_dependency(WinPR @FREERDP_VERSION@) +if("@cJSON_FOUND@" AND NOT "@BUILD_SHARED_LIBS@") + find_dependency(cJSON) +endif() +if("@WITH_SMARTCARD_EMULATE@" AND NOT "@BUILD_SHARED_LIBS@") + find_dependency(ZLIB) +endif() @PACKAGE_INIT@