From 544d4fccc3a02a04853ccb33ce39f78535d88bae Mon Sep 17 00:00:00 2001 From: nick black Date: Tue, 31 Dec 2024 17:10:52 -0500 Subject: [PATCH] cmake: use find_library for deflate, but pkg-style identifiers --- CMakeLists.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3e135cd1a..15fca50d6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -193,7 +193,7 @@ endif() find_library(DEFLATE deflate REQUIRED) set_property(GLOBAL APPEND PROPERTY PACKAGES_FOUND DEFLATE) set_package_properties(DEFLATE PROPERTIES TYPE REQUIRED) -set(DEFLATE_LIBRARIES ${libdeflate}) +set(DEFLATE_LIBRARIES ${DEFLATE}) else() find_package(ZLIB) set_package_properties(ZLIB PROPERTIES TYPE REQUIRED) @@ -279,24 +279,24 @@ target_include_directories(notcurses-core-static ) target_link_libraries(notcurses-core PRIVATE - "${DEFLATE_LIBRARIES}" - "${ZLIB_LIBRARIES}" "${TERMINFO_LIBRARIES}" "${LIBM}" "${unistring}" "${gpm}" + "${DEFLATE_LIBRARIES}" + "${ZLIB_LIBRARIES}" PUBLIC Threads::Threads "${LIBRT}" ) target_link_libraries(notcurses-core-static PRIVATE - "${DEFLATE_STATIC_LIBRARIES}" - "${ZLIB_STATIC_LIBRARIES}" "${TERMINFO_STATIC_LIBRARIES}" "${LIBM}" "${unistring}" "${gpm}" + "${DEFLATE_STATIC_LIBRARIES}" + "${ZLIB_STATIC_LIBRARIES}" Threads::Threads "${LIBRT}" )