From c44dec1e351903932d947f7133251697d2096d68 Mon Sep 17 00:00:00 2001 From: David Chavez Date: Tue, 22 Nov 2022 00:23:46 +0100 Subject: [PATCH] [cmake] Ask macOS to use deps after system (#1997) --- ZAPDTR/ZAPD/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ZAPDTR/ZAPD/CMakeLists.txt b/ZAPDTR/ZAPD/CMakeLists.txt index c169a7536..93aaf7356 100644 --- a/ZAPDTR/ZAPD/CMakeLists.txt +++ b/ZAPDTR/ZAPD/CMakeLists.txt @@ -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