Try passing the path to setenv script in CMAKE_GNUtoMS_VCVARS.