Skip to content

Commit

Permalink
Only require Qt5 when building the GUI
Browse files Browse the repository at this point in the history
Commit 6c88843 made Qt5 mandatory for all builds when it is only
required for the GUI. There's already a find_package call in src/gui,
it just needed the REQUIRED flag to be added.
  • Loading branch information
chewi committed Mar 17, 2020
1 parent e8d7cd3 commit af0ce63
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -357,12 +357,6 @@ else()
set (OPENSSL_LIBS ${lib_ssl} ${lib_crypto})
endif()


# Check we have the *required* Qt5 libs.
find_package(Qt5Core REQUIRED)
find_package(Qt5Network REQUIRED)
find_package(Qt5Widgets REQUIRED)

#
# Configure_file... but for directories, recursively.
#
Expand Down
2 changes: 1 addition & 1 deletion src/gui/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake_minimum_required (VERSION 3.4)

find_package (Qt5 COMPONENTS Core Widgets Network)
find_package (Qt5 REQUIRED COMPONENTS Core Widgets Network)
set (CMAKE_AUTOMOC ON)
set (CMAKE_AUTORCC ON)
set (CMAKE_AUTOUIC ON)
Expand Down

0 comments on commit af0ce63

Please sign in to comment.