fix a opening logic in findcmake