mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 17:19:03 -04:00
cmake: use find_library for deflate, but pkg-style identifiers
This commit is contained in:
parent
f2545423a0
commit
544d4fccc3
@ -193,7 +193,7 @@ endif()
|
|||||||
find_library(DEFLATE deflate REQUIRED)
|
find_library(DEFLATE deflate REQUIRED)
|
||||||
set_property(GLOBAL APPEND PROPERTY PACKAGES_FOUND DEFLATE)
|
set_property(GLOBAL APPEND PROPERTY PACKAGES_FOUND DEFLATE)
|
||||||
set_package_properties(DEFLATE PROPERTIES TYPE REQUIRED)
|
set_package_properties(DEFLATE PROPERTIES TYPE REQUIRED)
|
||||||
set(DEFLATE_LIBRARIES ${libdeflate})
|
set(DEFLATE_LIBRARIES ${DEFLATE})
|
||||||
else()
|
else()
|
||||||
find_package(ZLIB)
|
find_package(ZLIB)
|
||||||
set_package_properties(ZLIB PROPERTIES TYPE REQUIRED)
|
set_package_properties(ZLIB PROPERTIES TYPE REQUIRED)
|
||||||
@ -279,24 +279,24 @@ target_include_directories(notcurses-core-static
|
|||||||
)
|
)
|
||||||
target_link_libraries(notcurses-core
|
target_link_libraries(notcurses-core
|
||||||
PRIVATE
|
PRIVATE
|
||||||
"${DEFLATE_LIBRARIES}"
|
|
||||||
"${ZLIB_LIBRARIES}"
|
|
||||||
"${TERMINFO_LIBRARIES}"
|
"${TERMINFO_LIBRARIES}"
|
||||||
"${LIBM}"
|
"${LIBM}"
|
||||||
"${unistring}"
|
"${unistring}"
|
||||||
"${gpm}"
|
"${gpm}"
|
||||||
|
"${DEFLATE_LIBRARIES}"
|
||||||
|
"${ZLIB_LIBRARIES}"
|
||||||
PUBLIC
|
PUBLIC
|
||||||
Threads::Threads
|
Threads::Threads
|
||||||
"${LIBRT}"
|
"${LIBRT}"
|
||||||
)
|
)
|
||||||
target_link_libraries(notcurses-core-static
|
target_link_libraries(notcurses-core-static
|
||||||
PRIVATE
|
PRIVATE
|
||||||
"${DEFLATE_STATIC_LIBRARIES}"
|
|
||||||
"${ZLIB_STATIC_LIBRARIES}"
|
|
||||||
"${TERMINFO_STATIC_LIBRARIES}"
|
"${TERMINFO_STATIC_LIBRARIES}"
|
||||||
"${LIBM}"
|
"${LIBM}"
|
||||||
"${unistring}"
|
"${unistring}"
|
||||||
"${gpm}"
|
"${gpm}"
|
||||||
|
"${DEFLATE_STATIC_LIBRARIES}"
|
||||||
|
"${ZLIB_STATIC_LIBRARIES}"
|
||||||
Threads::Threads
|
Threads::Threads
|
||||||
"${LIBRT}"
|
"${LIBRT}"
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user