[cmake] Ask macOS to use deps after system (#1997)

This commit is contained in:
David Chavez 2022-11-22 00:23:46 +01:00 committed by GitHub
parent 5dcc7e41b9
commit c44dec1e35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -329,6 +329,9 @@ endif()
# Compile and link options
################################################################################
if (CMAKE_SYSTEM_NAME STREQUAL "Darwin")
set(CMAKE_FIND_FRAMEWORK LAST)
endif()
find_package(PNG REQUIRED)
target_include_directories(${PROJECT_NAME} PRIVATE