Visual studio error in pre-build event on a remote project
When using visual studio, the pre-build script fails when the project is on a remote directory (samba share). The issue is caused by the cd command that does not works with remote locations. I have a workaround, I replaced the cd command by a pushd and also added a popd at the end of the script. I edited cmLocalVisualStudioGenerator.cxx line 157, where I replaced cd by pushd and at the end of the function ConstructScript I've added
script += newline; script += "popd ";
I attach my modified version of cmLocalVisualStudioGenerator.cxx.cmLocalVisualStudioGenerator.cxx