Make compiler required when option is on, removed unused def

Signed-off-by: Claudio Cambra <claudio.cambra@gmail.com>
This commit is contained in:
Claudio Cambra 2022-01-05 12:42:47 +01:00 committed by Matthieu Gallien (Rebase PR Action)
parent 8ad04f5a5e
commit a1d42b4177
2 changed files with 1 additions and 5 deletions

View file

@ -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.

View file

@ -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()