[CMake] How to start CMake from scratch

2012-04-20 Thread Christian Arnault
Hi [I am on windows] If I use cmake-gui to build my project, it starts asking me for the build directory. Which is OK! (my project is named "B", it stands in "test/B", where there is a "test/B/CMakeLists.txt" and I want to build into "test/B/build") Now, if I use command interface CMake as

Re: [CMake] How to start CMake from scratch

2012-04-20 Thread Petr Kmoch
I never used --build myself, but my guess is you can't generate and build the project in a single step. I'd try the following (on a blank setup): cd test/B/build cmake .. cmake --build . When running cmake from the command line to generate a buildsystem, the source directory (where CMakeLists.txt

Re: [CMake] How to start CMake from scratch

2012-04-20 Thread Eric Noulard
2012/4/20 Christian Arnault : > Hi > > [I am on windows] > > If I use cmake-gui to build my project, it starts asking me for the build > directory. Which is OK! > > (my project is named "B", it stands in "test/B", where there is a > "test/B/CMakeLists.txt" and I want to build into "test/B/build") >

Re: [CMake] How to start CMake from scratch

2012-04-20 Thread Christian Arnault
Thanks to all who gave me hints and recipes to use CMake. And this works. Great! Christian Le 20/04/2012 13:41, Petr Kmoch a écrit : I never used --build myself, but my guess is you can't generate and build the project in a single step. I'd try the following (on a blank setup): cd test/B/bu