summaryrefslogtreecommitdiff
path: root/data/cmake/link-CoreServices.diff
diff options
context:
space:
mode:
Diffstat (limited to 'data/cmake/link-CoreServices.diff')
-rw-r--r--data/cmake/link-CoreServices.diff27
1 files changed, 27 insertions, 0 deletions
diff --git a/data/cmake/link-CoreServices.diff b/data/cmake/link-CoreServices.diff
new file mode 100644
index 000000000..e10210aa9
--- /dev/null
+++ b/data/cmake/link-CoreServices.diff
@@ -0,0 +1,27 @@
+--- cmake-3.14.2/Source/CMakeLists.txt 2019-04-12 12:10:08.000000000 +0000
++++ cmake-3.14.2+iPhone/Source/CMakeLists.txt 2019-04-17 21:24:00.563851766 +0000
+@@ -822,7 +822,9 @@
+ # On Apple we need CoreFoundation and CoreServices
+ if(APPLE)
+ target_link_libraries(CMakeLib "-framework CoreFoundation")
+- target_link_libraries(CMakeLib "-framework CoreServices")
++ if(HAVE_CoreServices)
++ target_link_libraries(CMakeLib "-framework CoreServices")
++ endif()
+ endif()
+
+ if(WIN32 AND NOT UNIX)
+diff -ur cmake-3.14.2/Utilities/cmlibarchive/CMakeLists.txt cmake-3.14.2+iPhone/Utilities/cmlibarchive/CMakeLists.txt
+--- cmake-3.14.2/Utilities/cmlibarchive/CMakeLists.txt 2019-04-12 12:10:10.000000000 +0000
++++ cmake-3.14.2+iPhone/Utilities/cmlibarchive/CMakeLists.txt 2019-04-17 21:45:09.028530057 +0000
+@@ -1664,7 +1664,9 @@
+
+ # We need CoreServices on Mac OS.
+ IF(APPLE)
+- LIST(APPEND ADDITIONAL_LIBS "-framework CoreServices")
++ if(HAVE_CoreServices)
++ LIST(APPEND ADDITIONAL_LIBS "-framework CoreServices")
++ endif()
+ ENDIF(APPLE)
+
+ add_subdirectory(libarchive)