From 64c5d222ce5d65004434119caa711a06bc5bb1cb Mon Sep 17 00:00:00 2001 From: Mischan Toosarani-Hausberger Date: Tue, 11 Jun 2024 12:54:29 +0200 Subject: [PATCH] fix: replace find_package() with find_dependency() in the exported CMake config --- crashpad-config.cmake.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crashpad-config.cmake.in b/crashpad-config.cmake.in index 846797d774..88fa099c75 100644 --- a/crashpad-config.cmake.in +++ b/crashpad-config.cmake.in @@ -1,7 +1,9 @@ include("${CMAKE_CURRENT_LIST_DIR}/crashpad-targets.cmake") +include(CMakeFindDependencyMacro) + if(@CRASHPAD_ZLIB_SYSTEM@) - find_package(ZLIB REQUIRED) + find_dependency(ZLIB REQUIRED) target_include_directories(crashpad::zlib INTERFACE ${ZLIB_INCLUDE_DIRS}) target_compile_definitions(crashpad::zlib INTERFACE ${ZLIB_COMPILE_DEFINITIONS}) target_link_libraries(crashpad::zlib INTERFACE ${ZLIB_LIBRARIES})