Skip to content

Commit

Permalink
env-hooks: install env-hook to etc/orocos/profile.d
Browse files Browse the repository at this point in the history
Check orocos-toolchain/orocos_toolchain#13.

Signed-off-by: Johannes Meyer <johannes@intermodalics.eu>
  • Loading branch information
meyerj committed Dec 29, 2016
1 parent 5e8b7c8 commit d4779e6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,13 @@ ADD_SUBDIRECTORY(typelib)

add_subdirectory(tools)

# Install an env-hook in etc/orocos/${OROCOS_TARGET}/profile.d
configure_file(env-hooks/00.typelib.sh.in ${CMAKE_CURRENT_BINARY_DIR}/env-hooks/00.typelib.sh @ONLY)
install(
FILES ${CMAKE_CURRENT_BINARY_DIR}/env-hooks/00.typelib.sh
DESTINATION etc/orocos/profile.d
)

# Install an env-hook if catkin is found
find_package(catkin QUIET)
if(catkin_FOUND)
Expand Down
6 changes: 1 addition & 5 deletions env-hooks/00.typelib.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,4 @@

export TYPELIB_USE_GCCXML=1

if [ `uname -s` = Darwin ]; then
export DYLD_LIBRARY_PATH=@CMAKE_INSTALL_PREFIX@/lib/typelib:$DYLD_LIBRARY_PATH
else
export LD_LIBRARY_PATH=@CMAKE_INSTALL_PREFIX@/lib/typelib:$LD_LIBRARY_PATH
fi
# Note: LD_LIBRARY_PATH/DYLD_LIBRARY_PATH will be set in 00.utilrb.sh.in.

0 comments on commit d4779e6

Please # to comment.