Spain PM protests Cameron 'Brexit' visit to Gibraltar

Spain's acting Primer Minister and candidate of Popular Party, Mariano Rajoy, holds up an artichokes during a campaign election rally in Tudela, northern Spain, Wednesday, June 15, 2016. Spain's political parties are set to launch two-week campaigns leading up to a June 26 election aimed at breaking six months of political paralysis after a December election failed to negotiate a governing coalition. (AP Photo/Alvaro Barrientos) (The Associated Press)

Spain's acting Primer Minister and candidate of Popular Party, Mariano Rajoy, left, stands in a field of artichokes as he talks with a farmer during a campaign election rally in Tudela, northern Spain, Wednesday, June 15, 2016. Spain's political parties are set to launch two-week campaigns leading up to a June 26 election aimed at breaking six months of political paralysis after a December election failed to negotiate a governing coalition. (AP Photo/Alvaro Barrientos) (The Associated Press)

Spain's acting Primer Minister and candidate of Popular Party, Mariano Rajoy, crosses a field of artichokes during a campaign election rally in Tudela, northern Spain, Wednesday, June 15, 2016. Spain's political parties are set to launch two-week campaigns leading up to a June 26 election aimed at breaking six months of political paralysis after a December election failed to negotiate a governing coalition. (AP Photo/Alvaro Barrientos) (The Associated Press)

Spanish Premier Mariano Rajoy says he hopes Britain stays in the EU but is unhappy with British Prime Minister David Cameron's brief campaign stop in Gibraltar, which Spain claims as its territory.

Rajoy said Thursday that Spain views Gibraltar as Spanish regardless of what happens in the referendum. Spain ceded Gibraltar's sovereignty to Britain in a 1713 treaty but has persistently sought its return ever since.

Cameron is making a two-hour visit Thursday to Gibraltar to seek votes to keep Britain in the EU in the June 23 referendum.