a bit simpler without the WITH_BREAKPAD_DEFAULT part, and causes the
WITH_BREAKPAD option to be hidden from cmake-gui on WIN32
Signed-off-by: Casey Bodley <cbodley@redhat.com>
message("-- Enabled Catch2 support")
endif()
-if(WIN32)
- set(WITH_BREAKPAD_DEFAULT OFF)
-else()
- set(WITH_BREAKPAD_DEFAULT ON)
-endif()
-
-option(WITH_BREAKPAD "Build with Google Breakpad crash reporter" ${WITH_BREAKPAD_DEFAULT})
+# enable breakpad unless win32
+CMAKE_DEPENDENT_OPTION(WITH_BREAKPAD "Build with Google Breakpad crash reporter" OFF
+ "WIN32" ON)
if(WITH_BREAKPAD)
set(HAVE_BREAKPAD ON)
message("-- Enabled Google Breakpad crash reporter")