From 467038d45e6819c80886cae310a586ade9d250f2 Mon Sep 17 00:00:00 2001 From: itsmattkc <34096995+itsmattkc@users.noreply.github.com> Date: Fri, 1 Oct 2021 17:07:57 -0700 Subject: [PATCH] cmake: find qt5 network module --- CMakeLists.txt | 5 +++++ app/CMakeLists.txt | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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()