Configure build directory dialog explained
Andreas Pakulat
apaku at gmx.de
Sat Oct 29 11:28:20 BST 2011
On 29.10.11 01:14:38, Mateusz Ĺoskot wrote:
> I do this:
> 1) New session created.
> 2) Open / Import Project.
> 3) Configure a build directory
> (http://www.flickr.com/photos/mloskot/6290341650/)
>
> Question 1)
> Build type, is it reconfigurable once the project is created/imported?
Yes and no. You can re-configure it, but that'll require deleting and
re-creating the build directory since CMake does not support changing
the Buildtype in an existing build-tree.
> Or, the project is supposed to be set with particular build type once
> and for good
> and if user wants to change the build type later, then she is supposed to
> create/import new project?
You could simply add another build directory in the project
configuration and switch between the two.
> Question 2)
> What exactly is the kosher input in Extra Arguments?
A string passed as arguments to the cmake invocation. So anything you
can pass to cmake on the commandline you can put in here too. What I'm
not sure about right now is wether it properly supports spaces in
argument-values or simply does a str.split(" ") to get a list of
arguments from it.
> Question 3)
> If Debug is selected as Build type and Extra Arguments is given with
> -DCMAKE_BUILD_TYPE=Release, which one has preference?
Thats something to look up in the cmake manual or the cmake mailinglist.
> Question 4)
> If the installation prefix is left empty, does it mean default
> CMAKE_INSTALL_PREFIX value is used?
If you leave it empty, cmake will choose one - which is /usr/local on
Linux as documented in the cmake manual.
Andreas
More information about the KDevelop
mailing list