Skip to content

Commit bde575b

Browse files
authored
find_package: only depend on Qt if BUILD_QT_UI is set to ON (#223)
1 parent 0b20011 commit bde575b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cmake/AppImageUpdateConfig.cmake.in

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
# look up dependencies
44
find_package(zsync2 REQUIRED)
55
find_package(libappimage REQUIRED)
6-
find_package(Qt5 REQUIRED COMPONENTS Core Widgets)
6+
7+
# BUILD_QT_UI
8+
if(@BUILD_QT_UI@)
9+
find_package(Qt5 REQUIRED COMPONENTS Core Widgets)
10+
endif()
711

812
include("${CMAKE_CURRENT_LIST_DIR}/AppImageUpdateTargets.cmake")

0 commit comments

Comments
 (0)