bug fix of Cmake, similarity