I would add this as a comment, but I do not have enough reputation.
Remember to install the compiler in clang ++:
set(CMAKE_CXX_COMPILER "clang++")
Also clean the created cmake files (delete the CMakeFiles and CMakeCache.txt ).
Depending on your system, this may also help to install
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -stdlib=libc++ -lc++abi")
source share