From 87d3b728f34f406c46220e9266d07a0fbc602c49 Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Wed, 8 May 2024 23:34:49 +0100 Subject: [PATCH] fixup! cmake [KILL 3-STATE]: Make WITH_GUI binary option w/ default OFF Mark `Qt5*_DIR` cache variables as advanced to hide them in the GUI. --- cmake/module/FindQt5.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmake/module/FindQt5.cmake b/cmake/module/FindQt5.cmake index cbf17f02af86c..f39ee53d5b5c5 100644 --- a/cmake/module/FindQt5.cmake +++ b/cmake/module/FindQt5.cmake @@ -60,3 +60,7 @@ find_package_handle_standard_args(Qt5 REQUIRED_VARS Qt5_DIR VERSION_VAR Qt5_VERSION ) + +foreach(component IN LISTS Qt5_FIND_COMPONENTS ITEMS "") + mark_as_advanced(Qt5${component}_DIR) +endforeach()