File tree Expand file tree Collapse file tree 2 files changed +2
-16
lines changed Expand file tree Collapse file tree 2 files changed +2
-16
lines changed Original file line number Diff line number Diff 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 ()
135126elseif (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 ()
144130endif ()
145131add_library (crashpad::interface ALIAS crashpad_interface)
146132
Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ if(NOT IOS)
123123 )
124124endif ()
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 ()
You can’t perform that action at this time.
0 commit comments