update the cmake files for the darwin(macosx)