Bug 265966 - Build directory is not created properly when adding new build configuration
Summary: Build directory is not created properly when adding new build configuration
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: Build tools: CMake (show other bugs)
Version: 4.2.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 4.2.0
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-10 07:36 UTC by Sergey Vidyuk
Modified: 2011-03-08 03:21 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Vidyuk 2011-02-10 07:36:49 UTC
Version:           4.2.0 (using KDE 4.6.0) 
OS:                Linux

Build directory is not created when adding new build configuration for existing project and specifying build path contains more then one directory to be created.

Reproducible: Always

Steps to Reproduce:
1 Create new cmake project and set build directory to
<project dir>/build/debug
2 Open project configuration and add new build configuration in the cmake tab. Specify build dir like this:
<project dir>/build/android/debug
(directory 'android' must not exists)

Actual Results:  
directory:
<project dir>/build/android/debug
is not created and files generated by cmake are written to ${HOME}/Documents directory (at least in case of Archlinux)

Expected Results:  
directory structure 'android/debug' should be created and files generated by cmake should go there.

Everything works fine if I create directory by myself and then add new build configuration pointing to it.

Everything is fine also if directory structure to be created is simply one directory (like '<project dir>/build/release' when '<project dir>/build' is existing directory)
Comment 1 Aleix Pol 2011-03-08 03:21:47 UTC
Git commit 1495e99b6fc4b2fcd72dd5d8d20ccb9da073cb5a by Aleix Pol.
Committed on 08/03/2011 at 03:19.
Pushed by apol into branch '4.2'.

Use mkpath instead of mkdir t ocreate a builddir. The user can
be expecting KDevelop to create more than one step in the path.

BUG: 265966

M  +1    -1    projectbuilders/cmakebuilder/cmakejob.cpp     

http://commits.kde.org/kdevelop/1495e99b6fc4b2fcd72dd5d8d20ccb9da073cb5a