CMake: Add missing libs for dawn/comon/IOSurfaceUtils.cpp

Fixed: 355437197
Change-Id: If6167430b8a906b16c1314377cc3ccbafb5ba9c5
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/200136
Reviewed-by: Loko Kung <lokokung@google.com>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
diff --git a/src/dawn/common/CMakeLists.txt b/src/dawn/common/CMakeLists.txt
index 02e4cf6..9ea5ef5 100644
--- a/src/dawn/common/CMakeLists.txt
+++ b/src/dawn/common/CMakeLists.txt
@@ -118,6 +118,8 @@
     "WeakRefSupport.cpp"
 )
 
+set(conditional_private_depends)
+
 if (WIN32)
     list(APPEND headers
         "windows_with_undefs.h"
@@ -134,9 +136,12 @@
         "IOSurfaceUtils.cpp"
         "SystemUtils_mac.mm"
     )
+    list(APPEND conditional_private_depends
+        "-framework Foundation"
+        "-framework IOSurface"
+    )
 endif()
 
-set(conditional_private_depends)
 
 if (CMAKE_SYSTEM_NAME STREQUAL "Android")
     find_library(log_lib log)