cmake: fix build (#1645)

This commit is contained in:
Alexandre Bouvier 2024-12-02 03:04:44 +00:00 committed by GitHub
parent 0835dc71b3
commit 3dc0f6d831
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -69,7 +69,7 @@ if (NOT TARGET ZLIB::ZLIB)
FetchContent_MakeAvailable(ZLIB)
add_library(ZLIB::ZLIB ALIAS zlib)
# libpng expects this variable to exist after its find_package(ZLIB)
get_target_property(ZLIB_INCLUDE_DIRS zlib INTERFACE_INCLUDE_DIRECTORIES)
set(ZLIB_INCLUDE_DIRS "${FETCHCONTENT_BASE_DIR}/zlib-build")
endif()
# SDL3