Skip to content

Commit

Permalink
fix installation of __init__.py file for packages where name differs …
Browse files Browse the repository at this point in the history
…from project name (#34)
  • Loading branch information
dirk-thomas committed Sep 13, 2013
1 parent 752140a commit 6bbac53
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions cmake/genmsg-extras.cmake.em
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,9 @@ macro(generate_messages)

# mark that generate_messages() was called in order to detect wrong order of calling with catkin_python_setup()
set(${PROJECT_NAME}_GENERATE_MESSAGES TRUE)
# check if catkin_python_setup() was called in order to skip installation of generated __init__.py file
set(package_has_static_sources ${${PROJECT_NAME}_CATKIN_PYTHON_SETUP})
# check if catkin_python_setup() installs an __init__.py file for a package with the current project name
# in order to skip the installation of a generated __init__.py file
set(package_has_static_sources ${${PROJECT_NAME}_CATKIN_PYTHON_SETUP_HAS_PACKAGE_INIT})

em_expand(${genmsg_CMAKE_DIR}/pkg-genmsg.context.in
${CMAKE_CURRENT_BINARY_DIR}/cmake/${PROJECT_NAME}-genmsg-context.py
Expand Down
2 changes: 1 addition & 1 deletion package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<author>Morten Kjaergaard</author>
<author>Ken Conley</author>

<buildtool_depend version_gte="0.5.68">catkin</buildtool_depend>
<buildtool_depend version_gte="0.5.74">catkin</buildtool_depend>

<export>
<rosdoc config="rosdoc.yaml"/>
Expand Down

0 comments on commit 6bbac53

Please sign in to comment.