changed cmake file so code is not generated EVERYTIME