-
-
Notifications
You must be signed in to change notification settings - Fork 535
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sentry-native: Patch for compat with latest mingw headers
- Loading branch information
Showing
2 changed files
with
15 additions
and
0 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
14 changes: 14 additions & 0 deletions
14
lib/exceptionhandler/3rdparty/sentry/PatchSentryNative.cmake
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,14 @@ | ||
if(NOT CMAKE_SCRIPT_MODE_FILE) | ||
message(FATAL_ERROR "This script currently only supports being run via `cmake -P` script mode") | ||
endif() | ||
set(_fullPathToThisScript "${CMAKE_SCRIPT_MODE_FILE}") | ||
get_filename_component(_scriptFolder "${_fullPathToThisScript}" DIRECTORY) | ||
|
||
if((NOT DEFINED SOURCE_DIR) OR (SOURCE_DIR STREQUAL "")) | ||
message(FATAL_ERROR "SOURCE_DIR must be specified on command-line") | ||
endif() | ||
|
||
# Remove compat/mingw/werapi.h (no longer needed) | ||
if (EXISTS "${SOURCE_DIR}/external/crashpad/compat/mingw/werapi.h") | ||
file(REMOVE "${SOURCE_DIR}/external/crashpad/compat/mingw/werapi.h") | ||
endif() |