Skip to content

Commit 58d7207

Browse files
authored
build: remove obsolete CRASHPAD_WER_ENABLED (#96)
1 parent 89991e9 commit 58d7207

File tree

2 files changed

+2
-16
lines changed

2 files changed

+2
-16
lines changed

CMakeLists.txt

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -123,24 +123,10 @@ if(MSVC)
123123
$<$<COMPILE_LANGUAGE:C,CXX>:/wd4577> # 'noexcept' used with no exception handling mode specified.
124124
$<$<COMPILE_LANGUAGE:C,CXX>:/wd4996> # 'X' was declared deprecated.
125125
)
126-
127-
# WER support is only available starting from Win10 build 10941
128-
if("${CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION}" VERSION_LESS 10.0.19041)
129-
message(STATUS "WER support disabled. Needs target platform >= 10.0.19041 (actual: ${CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION})")
130-
else()
131-
SET(CRASHPAD_WER_ENABLED TRUE)
132-
SET(CRASHPAD_WER_ENABLED TRUE PARENT_SCOPE)
133-
message(STATUS "WER support enabled")
134-
endif()
135126
elseif(MINGW)
136127
# redirect to wmain
137128
# FIXME: cmake 3.13 added target_link_options
138129
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -municode")
139-
if(CRASHPAD_WER_ENABLED)
140-
message(STATUS "WER support enabled")
141-
else()
142-
message(STATUS "WER support disabled. Define CRASHPAD_WER_ENABLED = TRUE to enable.")
143-
endif()
144130
endif()
145131
add_library(crashpad::interface ALIAS crashpad_interface)
146132

handler/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ if(NOT IOS)
123123
)
124124
endif()
125125

126-
if(CRASHPAD_WER_ENABLED)
126+
if (WIN32)
127127
add_library(crashpad_wer SHARED
128128
win/wer/crashpad_wer.cc
129129
win/wer/crashpad_wer.h
@@ -147,4 +147,4 @@ if(CRASHPAD_WER_ENABLED)
147147
install(TARGETS crashpad_wer EXPORT crashpad_export
148148
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
149149
)
150-
endif()
150+
endif()

0 commit comments

Comments
 (0)