Skip to content

Commit

Permalink
Do not use REQUIRED with find_dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
dg0yt authored and nmoinvaz committed Oct 23, 2024
1 parent 9aeff7b commit 95fdb49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ if(NOT SKIP_INSTALL_LIBRARIES AND NOT SKIP_INSTALL_ALL)
if(MINIZIP_DEP_PKG)
string(APPEND MINIZIP_CONFIG_CONTENT "include(CMakeFindDependencyMacro)\n")
foreach(pkg_name ${MINIZIP_DEP_PKG})
string(APPEND MINIZIP_CONFIG_CONTENT "find_dependency(${pkg_name} REQUIRED)\n")
string(APPEND MINIZIP_CONFIG_CONTENT "find_dependency(${pkg_name})\n")
endforeach()
endif()
string(APPEND MINIZIP_CONFIG_CONTENT "include(\"\${CMAKE_CURRENT_LIST_DIR}/${MINIZIP_TARGET}.cmake\")")
Expand Down

0 comments on commit 95fdb49

Please sign in to comment.