diff --git a/examples/rakefile_helper.rb b/examples/rakefile_helper.rb index 06f25f4..55e6c39 100644 --- a/examples/rakefile_helper.rb +++ b/examples/rakefile_helper.rb @@ -185,7 +185,7 @@ module RakefileHelpers if (header =~ /Mock/) require "../lib/cmock.rb" @cmock ||= CMock.new($cfg_file) - @cmock.setup_mocks(['src/'+header.gsub('Mock','')]) + @cmock.setup_mocks([$cfg['compiler']['source_path']+header.gsub('Mock','')]) end # Compile corresponding source file if it exists