summaryrefslogtreecommitdiffstats
path: root/cmake/QtProcessConfigureArgs.cmake
diff options
context:
space:
mode:
authorAlexey Edelev <alexey.edelev@qt.io>2023-09-13 13:33:16 +0200
committerAlexey Edelev <alexey.edelev@qt.io>2023-09-13 20:09:18 +0200
commit47a42b9c6a523478dc30732a17bc0ac1e02d301d (patch)
treed1fb7a65a999d8be6adc9c7a6580f19040b7151e /cmake/QtProcessConfigureArgs.cmake
parent569dc0de50a46b64763921199a2706ab34d151a9 (diff)
Show the allowed values for configure arguments
Just some help to users, so they can spot the allowed values without looking into docs. Pick-to: 6.6 Change-Id: I22ad9533104949286de447a05a6e875e8d933bf6 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'cmake/QtProcessConfigureArgs.cmake')
-rw-r--r--cmake/QtProcessConfigureArgs.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmake/QtProcessConfigureArgs.cmake b/cmake/QtProcessConfigureArgs.cmake
index f8f6d30981..b5ea370752 100644
--- a/cmake/QtProcessConfigureArgs.cmake
+++ b/cmake/QtProcessConfigureArgs.cmake
@@ -374,7 +374,9 @@ function(qtConfValidateValue opt val out_var)
endforeach()
set(${out_var} FALSE PARENT_SCOPE)
- qtConfAddError("Invalid value '${val}' supplied to command line option '${opt}'.")
+ list(JOIN valid_values " " valid_values_str)
+ qtConfAddError("Invalid value '${val}' supplied to command line option '${opt}'."
+ "\nAllowed values: ${valid_values_str}\n")
endfunction()
function(qt_commandline_mapped_enum_value opt key out_var)