mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
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:
@@ -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,4 +1,5 @@
|
||||
cmake_minimum_required(VERSION ${CMAKE_VERSION})
|
||||
cmake_policy(SET CMP0114 OLD) # Test deprecated behavior.
|
||||
|
||||
include(ExternalProject)
|
||||
|
||||
|
||||
@@ -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,4 +1,5 @@
|
||||
cmake_minimum_required(VERSION ${CMAKE_VERSION})
|
||||
cmake_policy(SET CMP0114 OLD) # Test deprecated behavior.
|
||||
|
||||
include(ExternalProject)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user