Skip to content

Commit

Permalink
fix setting of _xacro_py CMake var
Browse files Browse the repository at this point in the history
Fixes #16
  • Loading branch information
wjwwood committed Feb 3, 2014
1 parent 75724bc commit 68453f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/xacro-extras.cmake.em
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
@[if DEVELSPACE]@
set(_xacro_py
@(CMAKE_CURRENT_SOURCE_DIR)/scripts/xacro.py
@(CMAKE_CURRENT_SOURCE_DIR)/scripts/xacro
)
@[else]@
set(_xacro_py
@(CMAKE_INSTALL_PREFIX)/@(CATKIN_PACKAGE_BIN_DESTINATION)/scripts/xacro.py
@(CMAKE_INSTALL_PREFIX)/@(CATKIN_PACKAGE_BIN_DESTINATION)/xacro
)
@[end if]@

Expand Down

1 comment on commit 68453f8

@dirk-thomas
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In order to be relocatable no absolute path should be put into the generated code. Please use a xacro_DIR relative path (in line 7) instead.

Please sign in to comment.