fixed error in cmake when disabling esmtool