From dfe2f409029aa7331196b7c7a256d873cd0cde48 Mon Sep 17 00:00:00 2001 From: Ryan Foster Date: Wed, 10 Mar 2021 09:56:43 -0500 Subject: [PATCH] cmake: Require Qt if UI is enabled In CMakeLists.txt, FIND_MODE is not defined here. This was moved from UI/CMakeLists.txt in commit cb4d2ff7faa8b52cf219ae85fe6caf1d2fc3f906. In UI/CMakeLists.txt, FIND_MODE is REQUIRED if DISABLE_UI is false or undefined and ENABLE_UI is true. Since the same booleans are required for the if-else branch in CMakeLists.txt where we try to find Qt, we can set find_package to REQUIRED here as well. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1e873810a..6fcbed0fd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -254,7 +254,7 @@ if(NOT INSTALLER_RUN) list(APPEND CMAKE_PREFIX_PATH "$ENV{QTDIR}") endif() - find_package(Qt5Widgets ${FIND_MODE}) + find_package(Qt5Widgets REQUIRED) endif() add_subdirectory(deps)