i mount a continious integration plateform with buildbot, the project use cmake for generate a visual studio 2010 solution.
for test purpose i use my windows dev vm for the buildslave, cmake die with a strange error
CMake Error: Could not create named generator "Visual Studio 10"
but if i do the cmake manualy, it's work fine
cmake -G "Visual Studio 10" source
the config of this buildslave:
factoryWin = BuildFactory()
factoryWin.addStep(SVN(svnurl=repo_url, mode='copy', username=svn_user, password=svn_passwd))
factoryWin.addStep(ShellCommand(command=['cmake', '-G"Visual Studio 10"', 'source']))
c['builders'].append(
BuilderConfig(name="runtests-win",
slavenames=["win-slave"],
factory=factoryWin)
are you have an idea?
For my situation I had to resolve this problem with the use of an environment variable. The command then becomes:
This I think stops the twisted runprocess from manipulating the string. In my case I also wanted to set up the Visual Studio command environment so my command is:
Obviously I have my relative path between my build directory and src directory different but the outcome is the same, namely a Visual Studio solution generated by cmake.