GENERATED prop: Set CMP0118 to NEW for some (unrelated) tests

* Adjusting the (unrelated) RunCMake.Ninja test to set CMP0118 to `NEW`.
* Adjusting the (unrelated) RunCMake.FileAPI test to set CMP0118 to
  `NEW`.
This commit is contained in:
Deniz Bahadir
2020-11-11 22:04:10 +01:00
parent 6624b65b3f
commit 573d51201a
2 changed files with 2 additions and 2 deletions

View File

@@ -50,7 +50,7 @@ run_cmake(ClientStateful)
function(run_object object)
set(RunCMake_TEST_BINARY_DIR ${RunCMake_BINARY_DIR}/${object}-build)
list(APPEND RunCMake_TEST_OPTIONS -DCMAKE_POLICY_DEFAULT_CMP0118=OLD)
list(APPEND RunCMake_TEST_OPTIONS -DCMAKE_POLICY_DEFAULT_CMP0118=NEW)
run_cmake(${object})
list(POP_BACK RunCMake_TEST_OPTIONS)
set(RunCMake_TEST_NO_CLEAN 1)

View File

@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.8)
cmake_policy(SET CMP0118 OLD)
cmake_policy(SET CMP0118 NEW)
project(AssumedSources)
set_source_files_properties(