浏览代码

Make compiler required when option is on, removed unused def

Signed-off-by: Claudio Cambra <claudio.cambra@gmail.com>
Claudio Cambra 4 年之前
父节点
当前提交
a1d42b4177
共有 2 个文件被更改,包括 1 次插入5 次删除
  1. 0 4
      CMakeLists.txt
  2. 1 1
      src/gui/CMakeLists.txt

+ 0 - 4
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.

+ 1 - 1
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()