summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/ToolchainFile/CMP0126-NEW.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-07-19 20:28:23 (GMT)
committerBrad King <brad.king@kitware.com>2021-07-20 13:47:02 (GMT)
commit144be54dd31ad1320e3efa9b2b30876dcadd590a (patch)
treedc5f0b80d11162a245e6c5b1b1c98db5f38be997 /Tests/RunCMake/ToolchainFile/CMP0126-NEW.cmake
parent4ff651eb52215ca0e1ffe5e5356b56b57913fee0 (diff)
downloadCMake-144be54dd31ad1320e3efa9b2b30876dcadd590a.zip
CMake-144be54dd31ad1320e3efa9b2b30876dcadd590a.tar.gz
CMake-144be54dd31ad1320e3efa9b2b30876dcadd590a.tar.bz2
try_compile: Propagate CMP0126 to the generated test project
Set policy CMP0126 to the value used in the calling project. It may affect toolchain file behavior.
Diffstat (limited to 'Tests/RunCMake/ToolchainFile/CMP0126-NEW.cmake')
-rw-r--r--Tests/RunCMake/ToolchainFile/CMP0126-NEW.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Tests/RunCMake/ToolchainFile/CMP0126-NEW.cmake b/Tests/RunCMake/ToolchainFile/CMP0126-NEW.cmake
new file mode 100644
index 0000000..62d4df1
--- /dev/null
+++ b/Tests/RunCMake/ToolchainFile/CMP0126-NEW.cmake
@@ -0,0 +1,2 @@
+cmake_policy(SET CMP0126 NEW)
+enable_language(C)