renaming since during static library creation, surf.ocl.o is archived as surf.o due to basename truncation. This conflicts with surf.o created from surf.cpp and  XCode throws linker error for duplicate symbol.
CMake's get_filename_component with NAME_WE interprets first period as start of extension. E.g. file name witj out extension of 'this.is.a.text.file.txt' => 'this' instead of proper name 'this.is.a.text.file'. So using get_filename_component with NAME and further regex replacements to get proper file name.
Merge branch 'master' of https://github.com/kiranpradeep/opencv