summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/ToolchainFile/CheckLanguage-toolchain.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/ToolchainFile/CheckLanguage-toolchain.cmake')
-rw-r--r--Tests/RunCMake/ToolchainFile/CheckLanguage-toolchain.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/RunCMake/ToolchainFile/CheckLanguage-toolchain.cmake b/Tests/RunCMake/ToolchainFile/CheckLanguage-toolchain.cmake
new file mode 100644
index 0000000..081f905
--- /dev/null
+++ b/Tests/RunCMake/ToolchainFile/CheckLanguage-toolchain.cmake
@@ -0,0 +1,4 @@
+get_property(in_try_compile GLOBAL PROPERTY IN_TRY_COMPILE)
+if(in_try_compile)
+ message(FATAL_ERROR "Toolchain file included")
+endif()