CMake modified for clang

clang is for Mac, so I modified CMake for clang