Skip to content

Commit 8cd4497

Browse files
hebastoRandyMcMillan
authored andcommitted
cmake: Fix FindQt module
The `find_package(Qt .. MODULE REQUIRED COMPONENTS ...)` call must treat any missing component as a fatal error.
1 parent a43e57e commit 8cd4497

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/module/FindQt.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ unset(_qt_homebrew_prefix)
3636

3737
include(FindPackageHandleStandardArgs)
3838
find_package_handle_standard_args(Qt
39-
REQUIRED_VARS Qt${Qt_FIND_VERSION_MAJOR}_DIR
39+
REQUIRED_VARS Qt${Qt_FIND_VERSION_MAJOR}_FOUND
4040
VERSION_VAR Qt${Qt_FIND_VERSION_MAJOR}_VERSION
4141
)
4242

0 commit comments

Comments
 (0)