diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2021-06-29 11:36:28 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2021-06-29 11:36:28 (GMT) |
commit | 16208ac1132b5624743c3ea534f610541d90ab8f (patch) | |
tree | 8353fc636dc18ad199666d18067ed23944ce26f2 /Tests/RunCMake/CMP0126/CMP0126-WARN.cmake | |
parent | 480bd71b1655e84c1197c6c48bb606c18669548f (diff) | |
download | CMake-16208ac1132b5624743c3ea534f610541d90ab8f.zip CMake-16208ac1132b5624743c3ea534f610541d90ab8f.tar.gz CMake-16208ac1132b5624743c3ea534f610541d90ab8f.tar.bz2 |
CMP0126: Add control for warnings
Fixes: #22353
Diffstat (limited to 'Tests/RunCMake/CMP0126/CMP0126-WARN.cmake')
-rw-r--r-- | Tests/RunCMake/CMP0126/CMP0126-WARN.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/RunCMake/CMP0126/CMP0126-WARN.cmake b/Tests/RunCMake/CMP0126/CMP0126-WARN.cmake new file mode 100644 index 0000000..111c824 --- /dev/null +++ b/Tests/RunCMake/CMP0126/CMP0126-WARN.cmake @@ -0,0 +1,5 @@ + +set(CMAKE_POLICY_WARNING_CMP0126 1) + +set(MY_VAR 1) +set(MY_VAR 2 CACHE STRING "") |