I have cmake 2.8.2. and a project with directory like this: In the repository, I have bin directory to store built binary files. I can generate visual studio solution files in bin folder without any problem with cmake-gui. But I'd like to generate solution file using the command line version of cmake.
I tried cmake -G "Visual Studio 9 2008" .. in bin directory, but solution file is generated in the repository directory.