CodeGenerator.cmake: Fix cache variables type

Change-Id: Iad8ce9e211f20dc420dcccdb16d0452bd49e5038