Skip to content

Commit

Permalink
fix: replace find_package() with find_dependency() in the exported CM…
Browse files Browse the repository at this point in the history
…ake config (#104)
  • Loading branch information
supervacuus authored Jun 11, 2024
1 parent 202c1c2 commit 7e36850
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crashpad-config.cmake.in
Original file line number Diff line number Diff line change
@@ -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})
Expand Down

0 comments on commit 7e36850

Please sign in to comment.