[CMake] How to start CMake from scratch
Christian Arnault
arnault at lal.in2p3.fr
Fri Apr 20 05:52:39 EDT 2012
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 follows (with an empty build
directory):
> cd test
> cmake B --build B\build
CMake Error: The source directory "C:/Arnault/CMT2/test/B/build" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
If I first run cmake-gui, and specify the build directory, it's OK and
it properly populates the cache.
if now, I redo (command line but with a build directory already populated) :
> cmake B --build B\build
it's all ok now!!
Question: How to start a build from scratch, using the command line, and
specifying a build out-the-source ?
Thanks a lot for your help...
Cheers
Christian
--
--------------------------------------------
| Christian Arnault |
| LAL Bat 200 pièce 03a |
| 91405 Orsay CEDEX |
| phone : (33) 1 64 46 84 24 |
| gsm : (33) 6 77 27 62 30 |
| fax : (33) 1 69 07 94 04 |
| e-mail : christian.arnault at lal.in2p3.fr |
--------------------------------------------
More information about the CMake
mailing list