cmake: find qt5 network module

This commit is contained in:
itsmattkc
2021-10-01 17:07:57 -07:00
parent 11dbd625ab
commit 467038d45e
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -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
+1 -1
View File
@@ -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()