Update zlib handling again

This commit is contained in:
Jeremy 2023-10-04 22:26:07 -04:00
parent e529aaa94f
commit f38b693e74
No known key found for this signature in database
GPG Key ID: 19AA8270105E8EB4

View File

@ -445,7 +445,11 @@ target_include_directories(
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
) )
if(CMAKE_DWARF_FINDPACKAGE_Z)
target_link_libraries(dwarf PUBLIC ZLIB::ZLIB)
else()
target_link_libraries(dwarf PUBLIC ${DW_FZLIB} ${DW_FZSTD}) target_link_libraries(dwarf PUBLIC ${DW_FZLIB} ${DW_FZSTD})
endif()
# TODO: Something will have to be figured out for dynamic linking, but for now there's nothing to install # TODO: Something will have to be figured out for dynamic linking, but for now there's nothing to install
# if(NOT CMAKE_SKIP_INSTALL_RULES) # if(NOT CMAKE_SKIP_INSTALL_RULES)