Skip to content

Commit

Permalink
separate devel and install build folders for plain cmake packages cle…
Browse files Browse the repository at this point in the history
…anly without polluting namespace (fix #532)
  • Loading branch information
dirk-thomas committed Oct 10, 2013
1 parent 41f238e commit 1b57a99
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/catkin/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def _check_build_dir(name, workspace, buildspace):
blue_arrow + ' Creating build directory: \'' +
os.path.relpath(package_build_dir, workspace) + '\'@|'
)
os.mkdir(package_build_dir)
os.makedirs(package_build_dir)
return package_build_dir


Expand Down Expand Up @@ -402,9 +402,9 @@ def build_cmake_package(

# Make the build dir
if install:
build_dir_name = '%s_install' % package.name
build_dir_name = '%s%sinstall' % (package.name, os.sep)
else:
build_dir_name = '%s_devel' % package.name
build_dir_name = '%s%sdevel' % (package.name, os.sep)
build_dir = _check_build_dir(build_dir_name, workspace, buildspace)

# Check last_env
Expand Down

0 comments on commit 1b57a99

Please sign in to comment.