forked from microsoft/vcpkg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from trice-imaging/DEV-4070/update-sentry-pthr…
…ead-fix DEV-4070 Update sentry-native port to include static library pthread fix
- Loading branch information
Showing
7 changed files
with
73 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
diff --git a/sentry-config.cmake.in b/sentry-config.cmake.in | ||
index 1e3871f..e38b0c7 100644 | ||
--- a/sentry-config.cmake.in | ||
+++ b/sentry-config.cmake.in | ||
@@ -9,14 +9,14 @@ set(SENTRY_LINK_PTHREAD @SENTRY_LINK_PTHREAD@) | ||
if(SENTRY_BACKEND STREQUAL "crashpad") | ||
include("${CMAKE_CURRENT_LIST_DIR}/sentry_crashpad-targets.cmake") | ||
if(NOT SENTRY_BUILD_SHARED_LIBS) | ||
- find_dependency(ZLIB REQUIRED) | ||
+ find_dependency(ZLIB) | ||
endif() | ||
endif() | ||
|
||
if(SENTRY_BACKEND STREQUAL "breakpad" AND NOT SENTRY_BUILD_SHARED_LIBS) | ||
set(SENTRY_BREAKPAD_SYSTEM @SENTRY_BREAKPAD_SYSTEM@) | ||
if(SENTRY_BREAKPAD_SYSTEM) | ||
- find_dependency(PkgConfig REQUIRED) | ||
+ find_dependency(PkgConfig) | ||
pkg_check_modules(BREAKPAD REQUIRED IMPORTED_TARGET breakpad-client) | ||
endif() | ||
endif() | ||
@@ -24,9 +24,9 @@ endif() | ||
include("${CMAKE_CURRENT_LIST_DIR}/sentry-targets.cmake") | ||
|
||
if(SENTRY_TRANSPORT STREQUAL "curl" AND (NOT @BUILD_SHARED_LIBS@ OR NOT SENTRY_BUILD_SHARED_LIBS)) | ||
- find_dependency(CURL REQUIRED) | ||
+ find_dependency(CURL) | ||
endif() | ||
|
||
if(SENTRY_LINK_PTHREAD AND NOT SENTRY_BUILD_SHARED_LIBS) | ||
- find_dependency(Threads REQUIRED) | ||
+ find_dependency(Threads) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/external/crashpad/handler/CMakeLists.txt b/external/crashpad/handler/CMakeLists.txt | ||
index be0e544..b0d44af 100644 | ||
--- a/external/crashpad/handler/CMakeLists.txt | ||
+++ b/external/crashpad/handler/CMakeLists.txt | ||
@@ -89,7 +89,7 @@ if(NOT IOS) | ||
main.cc | ||
) | ||
|
||
- if(LINUX) | ||
+ if(LINUX AND BUILD_SHARED_LIBS) | ||
target_sources(crashpad_handler PRIVATE | ||
../client/pthread_create_linux.cc | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters