Skip to content

Commit beee9e5

Browse files
committed
Make orocos_kdl installspace relocatable.
1 parent 3cc39b1 commit beee9e5

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

orocos_kdl/KDLConfig.cmake.in

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@
55
# orocos_kdl_PKGCONFIG_DIR - directory containing the .pc pkgconfig files
66

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

1110
if(NOT TARGET orocos-kdl)
12-
include("${SELF_DIR}/OrocosKDLTargets.cmake")
11+
include("${CMAKE_CURRENT_LIST_DIR}/OrocosKDLTargets.cmake")
1312
endif()
1413

1514
set(orocos_kdl_LIBRARIES orocos-kdl)
1615

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

0 commit comments

Comments
 (0)