Tests: Simplify RunCMake.ExternalProject Add_StepDependencies stderr

Set CMP0114 to OLD for this case to suppress the policy warning.
The warning is covered by the `NO_DEPENDS-CMP0114-WARN` case.
This commit is contained in:
Brad King
2020-09-14 14:42:16 -04:00
parent de9a2f1ef6
commit 52a1ba62df
4 changed files with 2 additions and 24 deletions

View File

@@ -1,12 +0,0 @@
^CMake Warning \(dev\) at .*/Modules/ExternalProject.cmake:[0-9]+ \(message\):
Policy CMP0114 is not set: ExternalProject step targets fully adopt their
steps. Run "cmake --help-policy CMP0114" for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
ExternalProject target 'FOO' would depend on the targets for step\(s\)
'do_something' under policy CMP0114, but this is being left out for
compatibility since the policy is not set.
Call Stack \(most recent call first\):
Add_StepDependencies.cmake:[0-9]+ \(ExternalProject_Add_StepTargets\)
CMakeLists.txt:[0-9]+ \(include\)
This warning is for project developers. Use -Wno-dev to suppress it.$

View File

@@ -1,4 +1,5 @@
cmake_minimum_required(VERSION ${CMAKE_VERSION})
cmake_policy(SET CMP0114 OLD) # Test deprecated behavior.
include(ExternalProject)

View File

@@ -1,12 +0,0 @@
^CMake Warning \(dev\) at .*/Modules/ExternalProject.cmake:[0-9]+ \(message\):
Policy CMP0114 is not set: ExternalProject step targets fully adopt their
steps. Run "cmake --help-policy CMP0114" for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
ExternalProject target 'FOO' would depend on the targets for step\(s\)
'do_something' under policy CMP0114, but this is being left out for
compatibility since the policy is not set.
Call Stack \(most recent call first\):
Add_StepDependencies_no_target.cmake:[0-9]+ \(ExternalProject_Add_StepTargets\)
CMakeLists.txt:[0-9]+ \(include\)
This warning is for project developers. Use -Wno-dev to suppress it.$

View File

@@ -1,4 +1,5 @@
cmake_minimum_required(VERSION ${CMAKE_VERSION})
cmake_policy(SET CMP0114 OLD) # Test deprecated behavior.
include(ExternalProject)