[CMake] Building out of source
David Cole
david.cole at kitware.com
Fri Dec 5 13:44:14 EST 2008
They are placed in the current directory. Run it from another directory and
then give the path to the source tree, as in:
checkout source tree to "source" directory
mkdir build
cd build
cmake -G "Unix Makefiles" ../source
In this example, source and build are siblings...
HTH,
David
On Fri, Dec 5, 2008 at 1:15 PM, Robert Dailey <rcdailey at gmail.com> wrote:
> Hi,
>
> Instead of using the GUI frontend for CMake on windows, I'm choosing to use
> the command line directly (Don't ask why). How can I specify the directory
> for which the target files are placed when I run "cmake -G"? Right now all
> of the vcproj files and cache are being placed in the same directories as my
> source tree, which I do not want.
>
> Thanks.
>
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20081205/0bd3ea07/attachment.htm>
More information about the CMake
mailing list