diff --git a/CMakeLists.txt b/CMakeLists.txt index b9ec14e58..d5baf5483 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -90,7 +90,12 @@ find_package(Qt5 5.6 REQUIRED Svg LinguistTools Concurrent + OPTIONAL_COMPONENTS + Network ) +if (NOT Qt5Network_FOUND) + message(" Qt5::Network module not found, crash reporting will be disabled.") +endif() list(APPEND OLIVE_LIBRARIES Qt5::Core Qt5::Gui diff --git a/app/CMakeLists.txt b/app/CMakeLists.txt index 83f58967a..12628b94e 100644 --- a/app/CMakeLists.txt +++ b/app/CMakeLists.txt @@ -137,6 +137,6 @@ target_include_directories(olive-editor PRIVATE ${OLIVE_INCLUDE_DIRS}) target_include_directories(libolive-editor PRIVATE ${OLIVE_INCLUDE_DIRS}) # Add crash handler -if (GoogleCrashpad_FOUND) +if (GoogleCrashpad_FOUND AND Qt5Network_FOUND) add_subdirectory(crashhandler) endif()