Can I change the temporary directory of CB?

By default, CB will use the primary hdd to store the temporary files. But I’m using a SSD as the primary HDD, so I want to change the temporary directory to another disk. How can I do that?