fix cmake warning if not enable test and doc