Skip to content

Commit 31d7a35

Browse files
committed
Replace FindLibZ with cmake builtin ZLIB
Better to use standard package location code over our own stuff when possible.
1 parent a60b171 commit 31d7a35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/FindLibBfd.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ SET(CMAKE_REQUIRED_LIBRARIES ${LIBBFD_LIBRARIES} ${LIBOPCODES_LIBRARIES})
5252
# do it. Furthermore, libbfd uses some libc symbols that we must manually
5353
# link against if we're not using static libc (which includes such symbols).
5454
if(STATIC_LINKING)
55-
find_package(LibZ)
55+
find_package(ZLIB)
5656
list(APPEND CMAKE_REQUIRED_LIBRARIES ${LIBIBERTY_LIBRARIES} ${LIBZ_LIBRARIES})
5757
if(NOT STATIC_LIBC)
5858
set(CMAKE_REQUIRED_FLAGS

0 commit comments

Comments
 (0)