Skip to content

Commit

Permalink
find_package: only depend on Qt if BUILD_QT_UI is set to ON (#223)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOneRing committed May 23, 2023
1 parent 0b20011 commit bde575b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmake/AppImageUpdateConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
# look up dependencies
find_package(zsync2 REQUIRED)
find_package(libappimage REQUIRED)
find_package(Qt5 REQUIRED COMPONENTS Core Widgets)

# BUILD_QT_UI
if(@BUILD_QT_UI@)
find_package(Qt5 REQUIRED COMPONENTS Core Widgets)
endif()

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

0 comments on commit bde575b

Please sign in to comment.