summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/File_Generate/RunCMakeTest.cmake
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-02-22 16:44:59 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-03-09 19:49:17 (GMT)
commit9e1689413fd1e54e8056b7d369cd508636987072 (patch)
tree1c75b3c8b78789e99f23abd09e6c59c1aa86c4e0 /Tests/RunCMake/File_Generate/RunCMakeTest.cmake
parentb734fa44719a780683e2eb0dfaabd38d64daa3f6 (diff)
downloadCMake-9e1689413fd1e54e8056b7d369cd508636987072.zip
CMake-9e1689413fd1e54e8056b7d369cd508636987072.tar.gz
CMake-9e1689413fd1e54e8056b7d369cd508636987072.tar.bz2
File(GENERATE): Process genex evaluation files for each language.
Diffstat (limited to 'Tests/RunCMake/File_Generate/RunCMakeTest.cmake')
-rw-r--r--Tests/RunCMake/File_Generate/RunCMakeTest.cmake10
1 files changed, 10 insertions, 0 deletions
diff --git a/Tests/RunCMake/File_Generate/RunCMakeTest.cmake b/Tests/RunCMake/File_Generate/RunCMakeTest.cmake
index 97f93d5..db344ef 100644
--- a/Tests/RunCMake/File_Generate/RunCMakeTest.cmake
+++ b/Tests/RunCMake/File_Generate/RunCMakeTest.cmake
@@ -17,6 +17,16 @@ if (NOT file_contents MATCHES "generated.cpp.rule")
message(SEND_ERROR "Rule file not in target sources! ${file_contents}")
endif()
+if (NOT RunCMake_GENERATOR MATCHES "Visual Studio")
+ run_cmake(COMPILE_LANGUAGE-genex)
+ foreach(l CXX C)
+ file(READ "${RunCMake_BINARY_DIR}/COMPILE_LANGUAGE-genex-build/opts-${l}.txt" l_defs)
+ if (NOT l_defs STREQUAL "LANG_IS_${l}\n")
+ message(FATAL_ERROR "File content does not match: ${l_defs}")
+ endif()
+ endforeach()
+endif()
+
set(timeformat "%Y%j%H%M%S")
file(REMOVE "${RunCMake_BINARY_DIR}/WriteIfDifferent-build/output_file.txt")