After getting outbid by the New York Yankees for Japanese star right-hander Masahiro Tanaka, the Chicago Cubs settled for free agent Jason Hammel.

Fox Sports reported Friday the Cubs agreed to a deal with Hammel, a right-hander.

Hammel, 31, went 7-8 with a 4.97 ERA in 23 starts last season with the Baltimore Orioles. He battled a forearm injury, and came back from a knee injury that shut him down for part of 2012. That season, he was 8-6 with a 3.43 ERA in 20 starts before the injury.

For his major-league career, Hammel is 49-59 with a 4.81 ERA over 989 1/3 innings. He has also pitched for the Tampa Bay Rays (2006-08) and Colorado Rockies (2009-11).