summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/UnityBuild/unitybuild_skip-check.cmake
diff options
context:
space:
mode:
authorCristian Adam <cristian.adam@gmail.com>2019-11-09 03:28:18 (GMT)
committerCristian Adam <cristian.adam@gmail.com>2019-11-11 13:10:18 (GMT)
commit9a5418320ea40d61a63fd47e5ac133c3ff780062 (patch)
treea3acc27189bb2d5b0b8d1f3d792826bc45a6e1f5 /Tests/RunCMake/UnityBuild/unitybuild_skip-check.cmake
parent929d7a454c8069bae4dece36838ed0db6b65d9cf (diff)
downloadCMake-9a5418320ea40d61a63fd47e5ac133c3ff780062.zip
CMake-9a5418320ea40d61a63fd47e5ac133c3ff780062.tar.gz
CMake-9a5418320ea40d61a63fd47e5ac133c3ff780062.tar.bz2
Unity: Don't include sources with HEADER_FILE_ONLY property set
Fixes: #19946 Fixes: #19947 Co-authored-by: Craig Scott <craig.scott@crascit.com>
Diffstat (limited to 'Tests/RunCMake/UnityBuild/unitybuild_skip-check.cmake')
-rw-r--r--Tests/RunCMake/UnityBuild/unitybuild_skip-check.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/Tests/RunCMake/UnityBuild/unitybuild_skip-check.cmake b/Tests/RunCMake/UnityBuild/unitybuild_skip-check.cmake
index 61419d8..fdd45bc 100644
--- a/Tests/RunCMake/UnityBuild/unitybuild_skip-check.cmake
+++ b/Tests/RunCMake/UnityBuild/unitybuild_skip-check.cmake
@@ -1,9 +1,9 @@
set(unitybuild_c "${RunCMake_TEST_BINARY_DIR}/CMakeFiles/tgt.dir/Unity/unity_0.c")
file(STRINGS ${unitybuild_c} unitybuild_c_strings)
-string(REGEX MATCH "\\/s[2-6].c" matched_files_2_6 ${unitybuild_c_strings})
-if(matched_files_2_6)
- set(RunCMake_TEST_FAILED "Generated unity contains s2.c -> s6.c which should have been skipped")
+string(REGEX MATCH "\\/s[1-6].c" matched_files_1_6 ${unitybuild_c_strings})
+if(matched_files_1_6)
+ set(RunCMake_TEST_FAILED "Generated unity contains s1.c -> s6.c which should have been skipped")
return()
endif()