diff --git a/CMakeLists.txt b/CMakeLists.txt index 8e10776e..ee0835ec 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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. # diff --git a/src/gui/CMakeLists.txt b/src/gui/CMakeLists.txt index 4988fe6a..f29fd910 100644 --- a/src/gui/CMakeLists.txt +++ b/src/gui/CMakeLists.txt @@ -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)