summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeTests
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/CMakeTests')
-rw-r--r--Tests/CMakeTests/CheckSourceTreeTest.cmake.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/CMakeTests/CheckSourceTreeTest.cmake.in b/Tests/CMakeTests/CheckSourceTreeTest.cmake.in
index 59b2890..33fe5f3 100644
--- a/Tests/CMakeTests/CheckSourceTreeTest.cmake.in
+++ b/Tests/CMakeTests/CheckSourceTreeTest.cmake.in
@@ -268,12 +268,12 @@ if(NOT ov STREQUAL "")
if(consider)
if(is_git_checkout)
- if(line MATCHES "^#[ \t]*modified:")
+ if(line MATCHES "^#?[ \t]*modified:")
message(" locally modified file detected...")
set(modifications 1)
endif()
- if(line MATCHES "^# Untracked")
+ if(line MATCHES "^(# )?Untracked")
message(" locally non-added file/directory detected...")
set(nonadditions 1)
endif()