浏览代码

Merge topic 'add-missing-macos-framework'

475e78d907 macOS: Add missing explicit dependency on CoreServices framework

Acked-by: Kitware Robot <[email protected]>
Merge-request: !2873
Brad King 6 年之前
父节点
当前提交
eeb34232fc
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      Source/CMakeLists.txt

+ 2 - 1
Source/CMakeLists.txt

@@ -819,9 +819,10 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Linux" AND CMAKE_SYSTEM_PROCESSOR MATCHES "sparc"
   endif()
 endif()
 
-# On Apple we need CoreFoundation
+# On Apple we need CoreFoundation and CoreServices
 if(APPLE)
   target_link_libraries(CMakeLib "-framework CoreFoundation")
+  target_link_libraries(CMakeLib "-framework CoreServices")
 endif()
 
 if(WIN32 AND NOT UNIX)