diff options
author | Brad King <brad.king@kitware.com> | 2020-09-14 18:42:16 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-09-15 15:20:07 (GMT) |
commit | 52a1ba62dffc1e929b8cf1e519e353b2c1846882 (patch) | |
tree | 1a1e9e8faec2954f690f2ef1d1c0ae7656c7e3c7 /Tests/RunCMake/ExternalProject | |
parent | de9a2f1ef6795d83a42c9b93baa7f7a0062744aa (diff) | |
download | CMake-52a1ba62dffc1e929b8cf1e519e353b2c1846882.zip CMake-52a1ba62dffc1e929b8cf1e519e353b2c1846882.tar.gz CMake-52a1ba62dffc1e929b8cf1e519e353b2c1846882.tar.bz2 |
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.
Diffstat (limited to 'Tests/RunCMake/ExternalProject')
4 files changed, 2 insertions, 24 deletions
diff --git a/Tests/RunCMake/ExternalProject/Add_StepDependencies-stderr.txt b/Tests/RunCMake/ExternalProject/Add_StepDependencies-stderr.txt deleted file mode 100644 index d0ff15f..0000000 --- a/Tests/RunCMake/ExternalProject/Add_StepDependencies-stderr.txt +++ /dev/null @@ -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.$ diff --git a/Tests/RunCMake/ExternalProject/Add_StepDependencies.cmake b/Tests/RunCMake/ExternalProject/Add_StepDependencies.cmake index 38683f1..4e43ab3 100644 --- a/Tests/RunCMake/ExternalProject/Add_StepDependencies.cmake +++ b/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) diff --git a/Tests/RunCMake/ExternalProject/Add_StepDependencies_no_target-stderr.txt b/Tests/RunCMake/ExternalProject/Add_StepDependencies_no_target-stderr.txt deleted file mode 100644 index 2ae2b53..0000000 --- a/Tests/RunCMake/ExternalProject/Add_StepDependencies_no_target-stderr.txt +++ /dev/null @@ -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.$ diff --git a/Tests/RunCMake/ExternalProject/Add_StepDependencies_no_target.cmake b/Tests/RunCMake/ExternalProject/Add_StepDependencies_no_target.cmake index 264c3f0..7c75007 100644 --- a/Tests/RunCMake/ExternalProject/Add_StepDependencies_no_target.cmake +++ b/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) |