[CMake] How to specify default build dir in CMakeLists.txt?
Kedzierski,
Artur CIV NAVSURFWARCENDIV CORONA
artur.kedzierski at navy.mil
Mon Sep 18 23:32:34 EDT 2006
Hi,
The goal is to have an out-of-source build by default.
The target is a programmer who compiles my package just
to get the libraries needed for another project. He would
have one less option to worry about, especially, if
he wasn't familiar with CMake. That programmer
would be accessing the source code from Subversion repository. The
out-of-source compilation would prevent problems related to
adding/deleting/adding back/ a directory. If the programmer
wanted to work on my library, he would changed the default to his
preferred structure (./build/debug/, ./build/optimized, etc.).
He could also shoot himself in the foot and change it to in-source
compilation.
--
Artur Kedzierski
-----Original Message-----
From: cmake-bounces+artur.kedzierski=navy.mil at cmake.org
[mailto:cmake-bounces+artur.kedzierski=navy.mil at cmake.org] On Behalf Of
Brandon J. Van Every
Sent: Monday, September 18, 2006 20:10
To: cmake
Subject: Re: [CMake] How to specify default build dir in CMakeLists.txt?
Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote:
> Hi,
>
> I am pretty new to CMake. Is there a way to specify a
> default build dir in CMakeLists.txt?
What are you really trying to prevent from happening? Are you just
trying to get all your *.o files to appear in a particular place,
separate from your source files, or some such? You can just set up your
source tree to build whatever way you want, although some approaches are
more complicated than others.
The 'default' for building is just your source tree. The user has the
option to change this to an out-of-directory build, which mirrors your
own source tree. The user will typically take that option if they have
"learned the CMake culture."
Cheers,
Brandon Van Every
_______________________________________________
CMake mailing list
CMake at cmake.org
http://www.cmake.org/mailman/listinfo/cmake
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4670 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/cmake/attachments/20060918/6bc6ffe5/smime.bin
More information about the CMake
mailing list