Skip to content

Commit

Permalink
Make orocos_kdl installspace relocatable.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikepurvis committed Jan 25, 2016
1 parent 3cc39b1 commit beee9e5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions orocos_kdl/KDLConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@
# orocos_kdl_PKGCONFIG_DIR - directory containing the .pc pkgconfig files

# Compute paths
get_filename_component(SELF_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
set(orocos_kdl_INCLUDE_DIRS "@KDL_INCLUDE_DIRS@;@CMAKE_INSTALL_PREFIX@/include")
set(orocos_kdl_INCLUDE_DIRS "${CMAKE_CURRENT_LIST_DIR}/../../include;@Boost_INCLUDE_DIRS@;@Eigen_INCLUDE_DIR@")

if(NOT TARGET orocos-kdl)
include("${SELF_DIR}/OrocosKDLTargets.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/OrocosKDLTargets.cmake")
endif()

set(orocos_kdl_LIBRARIES orocos-kdl)

# where the .pc pkgconfig files are installed
set(orocos_kdl_PKGCONFIG_DIR "@CMAKE_INSTALL_PREFIX@/lib/pkgconfig")
set(orocos_kdl_PKGCONFIG_DIR "${CMAKE_CURRENT_LIST_DIR}/../../lib/pkgconfig")

0 comments on commit beee9e5

Please sign in to comment.