diff options
| author | Martin Vejdarski <extrulm@gmail.com> | 2021-06-03 21:53:54 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-03 12:53:54 -0700 |
| commit | 5f32a49551c6101d294c7e73806999abab806570 (patch) | |
| tree | 865ab2cfb9f6210ce7e60cd2c1cba91833147fca /ports/sentry-native/fix-libcurl.patch | |
| parent | d97e15975af59c9cde44d418952785ff71fa110e (diff) | |
| download | vcpkg-5f32a49551c6101d294c7e73806999abab806570.tar.gz vcpkg-5f32a49551c6101d294c7e73806999abab806570.zip | |
[sentry-native] Enable arm64 on macOS (#18184)
* [sentry-native] Enable arm64 on macOS
* [sentry-native] x-add-version
* [sentry-native] Fix build issue with libcurl and crashpad for *-osx-dynamic
* [sentry-native] x-add-version
Diffstat (limited to 'ports/sentry-native/fix-libcurl.patch')
| -rw-r--r-- | ports/sentry-native/fix-libcurl.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/ports/sentry-native/fix-libcurl.patch b/ports/sentry-native/fix-libcurl.patch new file mode 100644 index 000000000..4ecba9666 --- /dev/null +++ b/ports/sentry-native/fix-libcurl.patch @@ -0,0 +1,19 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 8a74a93..30c131c 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -249,13 +249,7 @@ target_compile_definitions(sentry PRIVATE SIZEOF_LONG=${CMAKE_SIZEOF_LONG}) + + if(SENTRY_TRANSPORT_CURL) + find_package(CURL REQUIRED) +- target_include_directories(sentry PRIVATE ${CURL_INCLUDE_DIR}) +- # The exported sentry target must not contain any path of the build machine, therefore use generator expressions +- # FIXME: cmake 3.12 introduced the target CURL::libcurl +- string(REPLACE ";" "$<SEMICOLON>" GENEX_CURL_LIBRARIES "${CURL_LIBRARIES}") +- string(REPLACE ";" "$<SEMICOLON>" GENEX_CURL_COMPILE_DEFINITIONS "${CURL_COMPILE_DEFINITIONS}") +- target_link_libraries(sentry PRIVATE $<BUILD_INTERFACE:${GENEX_CURL_LIBRARIES}>) +- target_compile_definitions(sentry PRIVATE $<BUILD_INTERFACE:${GENEX_CURL_COMPILE_DEFINITIONS}>) ++ target_link_libraries(sentry PRIVATE CURL::libcurl) + endif() + + set_property(TARGET sentry PROPERTY C_VISIBILITY_PRESET hidden) |
