I used `PWD` to make `cmake` think it was working in a different directory. Has using `cd $PWD && cmake` worked better?