Browse Source

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.
Brad King 5 years ago
parent
commit
52a1ba62df

+ 0 - 12
Tests/RunCMake/ExternalProject/Add_StepDependencies-stderr.txt

@@ -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.$

+ 1 - 0
Tests/RunCMake/ExternalProject/Add_StepDependencies.cmake

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

+ 0 - 12
Tests/RunCMake/ExternalProject/Add_StepDependencies_no_target-stderr.txt

@@ -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.$

+ 1 - 0
Tests/RunCMake/ExternalProject/Add_StepDependencies_no_target.cmake

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