Improve CheetahGenerate by setting environment variable from CMake itself.