blob: 746be324815d7a55090c0d6e00a7fc55d5f67756 (
plain)
1
2
3
4
5
6
7
8
9
10
|
set(unitybuild_0 "${RunCMake_TEST_BINARY_DIR}/CMakeFiles/tgt.dir/Unity/unity_0_cxx.cxx")
file(STRINGS ${unitybuild_0} src)
foreach(expectedRegex IN ITEMS "SRC_f\\.cxx" "BLD_s1\\.cpp")
if(NOT "${src}" MATCHES "${expectedRegex}")
set(RunCMake_TEST_FAILED "Generated unity file doesn't have a match for expected unity ID regex ${expectedRegex}")
return()
endif()
endforeach()
|