Skip to content

Commit

Permalink
cmake: use find_library for deflate, but pkg-style identifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
dankamongmen committed Dec 31, 2024
1 parent f254542 commit 544d4fc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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}"
)
Expand Down

0 comments on commit 544d4fc

Please sign in to comment.