Fixed the CMAke bugs and cannot find install bug