[CMake]Handle correctly unfound library