mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
Tests: Fix -Wno-error=dev test
Commit 28f2d750ed (Add -Werror and -Wno-error command-line options,
2015-12-21, v3.5.0-rc1~61^2~1) added -W[no-]error along with tests, but
wrote the wrong name in the RunCMakeTest.cmake that actually runs the
test. As a result, the -Wno-error=dev test has never actually run, and
in fact the expected output had an incorrect line number. Fix the
expected output, and fix the RunCMakeTest.cmake to actually run the
test.
This commit is contained in:
@@ -1053,7 +1053,7 @@ run_cmake(Werror_dev)
|
||||
unset(RunCMake_TEST_OPTIONS)
|
||||
|
||||
set(RunCMake_TEST_OPTIONS -Wno-error=dev)
|
||||
run_cmake(Wno-error_deprecated)
|
||||
run_cmake(Wno-error_dev)
|
||||
unset(RunCMake_TEST_OPTIONS)
|
||||
|
||||
# -Wdev should not override deprecated options if specified
|
||||
|
||||
@@ -4,7 +4,7 @@ Call Stack \(most recent call first\):
|
||||
CMakeLists\.txt:[0-9]+ \(include\)
|
||||
This warning is for project developers\. Use -Wno-dev to suppress it\.
|
||||
|
||||
CMake Warning \(dev\) at Wno-error_dev\.cmake:6 \(include\):
|
||||
CMake Warning \(dev\) at Wno-error_dev\.cmake:7 \(include\):
|
||||
include\(\) given empty file name \(ignored\)\.
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists\.txt:[0-9]+ \(include\)
|
||||
|
||||
Reference in New Issue
Block a user