[CMake] specify output directory when running from the command line

Brandon Van Every bvanevery at gmail.com
Wed Dec 12 20:18:18 EST 2007


I think the practice,with both cmake and ccmake, is to invoke cmake
inside the directory you want the output.  So a typical drill is

mkdir mybuilddir
cd mybuilddir
ccmake mysourcedir

I use CMakeSetup all the time so this isn't an issue to me.  Debates
about making cmake more command line friendly appear from time to
time.  I'll let others debate the merits of this one.  I do note that
when I typed "cmake --help" it wasn't entirely clear to me where I'd
specify an output directory, or if I would.  I just happen to know the
expected usage.  I would say that (c)cmake --help is under-documented
on this point.

Cheers,
Brandon Van Every


On Dec 12, 2007 8:08 PM, Jesse Corrington <jesse.corrington at gmail.com> wrote:
> When running CMake from the command line, how can I specify the directory to
> put the output files in. Thanks.
>
> Jesse
>
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>


More information about the CMake mailing list