aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/sentry-native/fix-cmake4.patch
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/sentry-native/fix-cmake4.patch')
-rw-r--r--vcpkg/ports/sentry-native/fix-cmake4.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/vcpkg/ports/sentry-native/fix-cmake4.patch b/vcpkg/ports/sentry-native/fix-cmake4.patch
new file mode 100644
index 0000000..b68d773
--- /dev/null
+++ b/vcpkg/ports/sentry-native/fix-cmake4.patch
@@ -0,0 +1,22 @@
+diff --git a/external/crashpad/util/CMakeLists.txt b/external/crashpad/util/CMakeLists.txt
+index f60da7d..b512fc8 100644
+--- a/external/crashpad/util/CMakeLists.txt
++++ b/external/crashpad/util/CMakeLists.txt
+@@ -428,7 +428,7 @@ if(APPLE)
+ )
+ endif()
+ foreach(x ${def_relative_files})
+- set(full_path "${CMAKE_OSX_SYSROOT}/usr/include/mach/${x}")
++ set(full_path "${_CMAKE_OSX_SYSROOT_PATH}/usr/include/mach/${x}")
+ if(NOT EXISTS "${full_path}")
+ message(FATAL_ERROR "File not found: ${full_path}")
+ endif()
+@@ -460,7 +460,7 @@ if(APPLE)
+ list(TRANSFORM includes PREPEND "--include=")
+
+ if(CMAKE_OSX_SYSROOT)
+- set(sdk --sdk ${CMAKE_OSX_SYSROOT})
++ set(sdk --sdk ${_CMAKE_OSX_SYSROOT_PATH})
+ endif()
+
+ # When building for Xcode, the `CMAKE_OSX_SYSROOT` is not set to a proper