There was an error while loading. Please reload this page.
1 parent 4d66609 commit 596fc32Copy full SHA for 596fc32
1 file changed
cmake/findDependencies.cmake
@@ -1,6 +1,9 @@
1
-set(GUI_QT_COMPONENTS Core Gui Widgets PrintSupport)
2
-find_package(Qt5 COMPONENTS ${GUI_QT_COMPONENTS})
3
-find_package(Qt5LinguistTools)
+if (BUILD_GUI)
+ set(GUI_QT_COMPONENTS Core Gui Widgets PrintSupport)
+ find_package(Qt5 COMPONENTS ${GUI_QT_COMPONENTS})
4
+ find_package(Qt5LinguistTools)
5
+endif()
6
+
7
if (HAVE_RULES)
8
find_library(PCRE pcre)
9
if (NOT PCRE)
0 commit comments