diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 18f8312a33a..9e08625f4f6 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -307,7 +307,8 @@ if(NCNN_VULKAN) find_library(Metal NAMES Metal) find_library(Foundation NAMES Foundation) find_library(QuartzCore NAMES QuartzCore) - list(APPEND vulkan_dependent_LINK_LIBRARIES ${Metal} ${Foundation} ${QuartzCore}) + find_library(CoreGraphics NAMES CoreGraphics) + list(APPEND vulkan_dependent_LINK_LIBRARIES ${Metal} ${Foundation} ${QuartzCore} ${CoreGraphics}) if(CMAKE_SYSTEM_NAME STREQUAL "Darwin") find_library(IOKit NAMES IOKit) find_library(IOSurface NAMES IOSurface)