Skip to content

Commit

Permalink
Fail immediately if FORCE_QT6 is specified and Qt6 is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
argilo committed Oct 12, 2023
1 parent a16a47b commit 5de29c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ option(FORCE_QT6 "Force Qt6 to be used" OFF)
option(FORCE_QT5 "Force Qt5 to be used" OFF)

if(FORCE_QT6)
find_package(Qt6 QUIET COMPONENTS Core Network Widgets Svg SvgWidgets)
find_package(Qt6 REQUIRED COMPONENTS Core Network Widgets Svg SvgWidgets)
elseif(FORCE_QT5)
find_package(Qt5 REQUIRED COMPONENTS Core Network Widgets Svg)
else()
Expand Down

0 comments on commit 5de29c1

Please sign in to comment.