mirror of
https://github.com/libAthena/athena.git
synced 2025-07-04 12:16:06 +00:00
Fix ZLIB_LIBRARIES on macOS
This commit is contained in:
parent
064839bad6
commit
2aa5b76732
3
extern/zlib/CMakeLists.txt
vendored
3
extern/zlib/CMakeLists.txt
vendored
@ -1,7 +1,8 @@
|
||||
if (APPLE)
|
||||
# use toolchain zlib
|
||||
find_package(ZLIB REQUIRED)
|
||||
set(ZLIB_LIBRARIES ZLIB::ZLIB CACHE STRING "zlib libraries" FORCE)
|
||||
add_library(z ALIAS ZLIB::ZLIB) # alias hack to allow use from global context
|
||||
set(ZLIB_LIBRARIES z CACHE STRING "zlib libraries" FORCE)
|
||||
else()
|
||||
if(NOT WIN32 AND NOT NX) # remove WIN32 when specter/freetype is gone
|
||||
find_library(ZLIB_LIB NAMES zlib z)
|
||||
|
Loading…
x
Reference in New Issue
Block a user