summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/ToolchainFile/LangVars.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/ToolchainFile/LangVars.cmake')
-rw-r--r--Tests/RunCMake/ToolchainFile/LangVars.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/RunCMake/ToolchainFile/LangVars.cmake b/Tests/RunCMake/ToolchainFile/LangVars.cmake
new file mode 100644
index 0000000..169e639
--- /dev/null
+++ b/Tests/RunCMake/ToolchainFile/LangVars.cmake
@@ -0,0 +1,7 @@
+foreach(test_language C CXX)
+ enable_language(${test_language})
+ if(DEFINED CMAKE_${test_language}_STANDARD_DEFAULT
+ AND NOT CMAKE_${test_language}_COMPILE_FEATURES)
+ message(FATAL_ERROR "Compile features not found for ${test_language}")
+ endif()
+endforeach()