Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Don't try to detect Qt if GUI is disabled (#1057)
Otherwise the build may fail if Qt libraries are installed but qmake is not
  • Loading branch information
AMDmi3 authored and danmar committed Jan 25, 2018
1 parent 4d66609 commit 596fc32
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions cmake/findDependencies.cmake
@@ -1,6 +1,9 @@
set(GUI_QT_COMPONENTS Core Gui Widgets PrintSupport)
find_package(Qt5 COMPONENTS ${GUI_QT_COMPONENTS})
find_package(Qt5LinguistTools)
if (BUILD_GUI)
set(GUI_QT_COMPONENTS Core Gui Widgets PrintSupport)
find_package(Qt5 COMPONENTS ${GUI_QT_COMPONENTS})
find_package(Qt5LinguistTools)
endif()

if (HAVE_RULES)
find_library(PCRE pcre)
if (NOT PCRE)
Expand Down

0 comments on commit 596fc32

Please sign in to comment.