Commit bf241bcc authored by Brad King's avatar Brad King Committed by Kitware Robot

Merge topic 'improve_cmakes_error_handling_of_bad_parameters'

7302a23a cmake: Simplify -W recognition of no- and error= prefixes
98290782 cmake: redesign command-line argument parsing
d800c26c cmake: Fix processing of -Wno-error= flags
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Acked-by: Axel Huebl's avatarAxel Huebl <axel.huebl@plasma.ninja>
Merge-request: !5458
parents a6508865 7302a23a
Pipeline #201331 canceled with stages
in 41 minutes and 22 seconds
This diff is collapsed.
^CMake Error: No preset specified for --preset$
^CMake Error: No preset specified for --preset
CMake Error: Run 'cmake --help' for all supported options.$
^CMake Error: -C must be followed by a file name.
CMake Error: Problem processing arguments. Aborting.$
CMake Error: Run 'cmake --help' for all supported options.$
^CMake Error: -D must be followed with VAR=VALUE.
CMake Error: Problem processing arguments. Aborting.$
CMake Error: Run 'cmake --help' for all supported options.$
......@@ -671,6 +671,10 @@ set(RunCMake_TEST_OPTIONS -Wno-error=deprecated)
run_cmake(Wno-error_deprecated)
unset(RunCMake_TEST_OPTIONS)
set(RunCMake_TEST_OPTIONS -Werror=deprecated -Wno-error=deprecated)
run_cmake(Wno-error_deprecated)
unset(RunCMake_TEST_OPTIONS)
# Dev warnings should be on by default
run_cmake(Wdev)
......
^CMake Error: -U must be followed with VAR.
CMake Error: Problem processing arguments. Aborting.$
CMake Error: Run 'cmake --help' for all supported options.$
CMake Error: -W must be followed with \[no-\]<name>.
CMake Error: Problem processing arguments. Aborting.
CMake Error: Run 'cmake --help' for all supported options.
CMake Error: No warning name provided.
CMake Error: Problem processing arguments. Aborting.
CMake Error: Run 'cmake --help' for all supported options.
CMake Error: No warning name provided.
CMake Error: Problem processing arguments. Aborting.
CMake Error: Run 'cmake --help' for all supported options.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment