From a1d42b4177846f6540ca72ae7c699f245515baf7 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Wed, 5 Jan 2022 12:42:47 +0100 Subject: [PATCH] Make compiler required when option is on, removed unused def Signed-off-by: Claudio Cambra --- CMakeLists.txt | 4 ---- src/gui/CMakeLists.txt | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 26371b6d8..e6e16b7e1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -83,10 +83,6 @@ add_definitions( -DQT_MESSAGELOGCONTEXT #enable function name and line number in debug output ) -if(QUICK_COMPILER) - add_definitions(-DQUICK_COMPILER) # Enable use of QtQuick compiler -endif() - # if we cannot get it from git, directly try .tag (packages) # this will work if the tar balls have been properly created # via git-archive. diff --git a/src/gui/CMakeLists.txt b/src/gui/CMakeLists.txt index 8651be076..3a63eae55 100644 --- a/src/gui/CMakeLists.txt +++ b/src/gui/CMakeLists.txt @@ -5,7 +5,7 @@ if(QUICK_COMPILER) find_package(Qt5QuickCompiler) set_package_properties(Qt5QuickCompiler PROPERTIES DESCRIPTION "Compile QML at build time" - TYPE OPTIONAL + TYPE REQUIRED ) endif()