diff --git a/crashpad-config.cmake.in b/crashpad-config.cmake.in index 846797d77..88fa099c7 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})