summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/Make/IncludeRegexSubdir-check.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/Make/IncludeRegexSubdir-check.cmake')
-rw-r--r--Tests/RunCMake/Make/IncludeRegexSubdir-check.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/RunCMake/Make/IncludeRegexSubdir-check.cmake b/Tests/RunCMake/Make/IncludeRegexSubdir-check.cmake
new file mode 100644
index 0000000..dbdf7be
--- /dev/null
+++ b/Tests/RunCMake/Make/IncludeRegexSubdir-check.cmake
@@ -0,0 +1,4 @@
+include("${RunCMake_TEST_BINARY_DIR}/IncludeRegexSubdir/CMakeFiles/CMakeDirectoryInformation.cmake" OPTIONAL)
+if(NOT CMAKE_C_INCLUDE_REGEX_SCAN STREQUAL "^custom_include_regex$")
+ set(RunCMake_TEST_FAILED "CMAKE_C_INCLUDE_REGEX_SCAN has unexpected value:\n \"${CMAKE_C_INCLUDE_REGEX_SCAN}\"")
+endif()