Try running cmake using the form env TEMP= TMP= cmake ...
env TEMP= TMP= cmake ...
do you mean to place this at the top of my build script?