Hi Ian, thanks for this patch! Incidentally I had the same problem the same day you had submitted your patch to the cmake-list. BTW: Your patch works for VS 8 generator too since it uses the VS 7 local generator (I have tested it successfully :) Cheers Marco