aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/sentry-native/fix-cmake4.patch
blob: b68d773fc0058df0e53caa3f9bb3b8e8053a9481 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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