automatically pull in unity helper into tests when specified in both example and cmock's includes.

This commit is contained in:
Mark VanderVoord
2019-07-09 10:50:29 -04:00
parent 0b6118e410
commit 7761b3fb3f
6 changed files with 6 additions and 5 deletions
+2 -2
View File
@@ -185,8 +185,8 @@ module RakefileHelpers
obj_list = []
# Detect dependencies and build required required modules
header_list = extract_headers(test) + ['cmock.h']
header_list.each do |header|
header_list = extract_headers(test) + ['cmock.h'] + [ cfg[:cmock][:unity_helper_path] ]
header_list.compact.uniq.each do |header|
#create mocks if needed
if (header =~ /Mock/)