Skip to content

Commit

Permalink
work around find_library
Browse files Browse the repository at this point in the history
  • Loading branch information
dankamongmen committed Dec 31, 2024
1 parent 13db632 commit 69e7505
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,10 @@ check_include_file("libdeflate.h" HAVE_DEFLATE_H)
if(NOT "${HAVE_DEFLATE_H}")
message(FATAL_ERROR "Couldn't find libdeflate.h")
endif()
find_library(libdeflate deflate REQUIRED)
set_property(GLOBAL APPEND PROPERTY PACKAGES_FOUND libdeflate)
set_package_properties(libdeflate PROPERTIES TYPE REQUIRED)
find_library(DEFLATE deflate REQUIRED)
set_property(GLOBAL APPEND PROPERTY PACKAGES_FOUND DEFLATE)
set_package_properties(DEFLATE PROPERTIES TYPE REQUIRED)
set(DEFLATE_LIBRARIES ${libdeflate})
else()
find_package(ZLIB)
set_package_properties(ZLIB PROPERTIES TYPE REQUIRED)
Expand Down

0 comments on commit 69e7505

Please sign in to comment.