diff options
| author | Deniz Bahadir <dbahadir@benocs.com> | 2020-09-30 21:11:14 +0200 |
|---|---|---|
| committer | Deniz Bahadir <dbahadir@benocs.com> | 2020-11-24 17:54:54 +0100 |
| commit | ca4ce458a3a14889b1018198b6580ddddfb039a5 (patch) | |
| tree | b9317dd5ea89209ffbc1f9b2dfa0313e09a8b691 /Tests/RunCMake/Ninja/AssumedSources.cmake | |
| parent | 0eb30f175e61a013db301ab1be242dd497be4add (diff) | |
| download | cmake-ca4ce458a3a14889b1018198b6580ddddfb039a5.tar.gz | |
GENERATED prop: Check CMP0118 policy and warn in certain situations
* Adding tests for CMP0118 being unset (aka set to `WARN`).
* Adjusting the (unrelated) RunCMake.CMP0026 test to set CMP0118 to
`NEW`,
* Adjusting the (unrelated) RunCMake.Ninja test to set CMP0118 to `OLD`.
* Adjusting the (unrelated) RunCMake.FileAPI test to set CMP0118 to
`OLD`.
Note:
Setting CMP0118 to `NEW` and modifying the `GENERATED` property with
`set_property` or `set_source_files_properties` will currently NOT set
that property because the implementation is still to come.
Diffstat (limited to 'Tests/RunCMake/Ninja/AssumedSources.cmake')
| -rw-r--r-- | Tests/RunCMake/Ninja/AssumedSources.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Tests/RunCMake/Ninja/AssumedSources.cmake b/Tests/RunCMake/Ninja/AssumedSources.cmake index 5fb02199d3..9fd759ed7d 100644 --- a/Tests/RunCMake/Ninja/AssumedSources.cmake +++ b/Tests/RunCMake/Ninja/AssumedSources.cmake @@ -1,4 +1,5 @@ cmake_minimum_required(VERSION 3.8) +cmake_policy(SET CMP0118 OLD) project(AssumedSources) set_source_files_properties( |
