From 135cb2f41649ddbc79a7cf2b40287440bf3c87c7 Mon Sep 17 00:00:00 2001 From: mightyCelu Date: Tue, 16 May 2017 16:45:46 +0200 Subject: [PATCH] Use result of find_package(orocos_kdl) properly (#200) orocos_kdl_LIBRARY_DIRS was not set --- kdl_parser/CMakeLists.txt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/kdl_parser/CMakeLists.txt b/kdl_parser/CMakeLists.txt index 70124c1..3c548e0 100644 --- a/kdl_parser/CMakeLists.txt +++ b/kdl_parser/CMakeLists.txt @@ -14,15 +14,12 @@ find_package(TinyXML REQUIRED) include_directories(include ${orocos_kdl_INCLUDE_DIRS} ${TinyXML_INCLUDE_DIRS} ${catkin_INCLUDE_DIRS}) link_directories(${catkin_LIBRARY_DIRS}) -link_directories(${orocos_kdl_LIBRARY_DIRS}) link_directories(${Boost_LIBRARY_DIRS}) -find_library(KDL_LIBRARY REQUIRED NAMES orocos-kdl HINTS ${orocos_kdl_LIBRARY_DIRS}) - add_compile_options(-std=c++11) catkin_package( - LIBRARIES ${PROJECT_NAME} ${KDL_LIBRARY} + LIBRARIES ${PROJECT_NAME} ${orocos_kdl_LIBRARIES} INCLUDE_DIRS include CATKIN_DEPENDS roscpp rosconsole urdf DEPENDS orocos_kdl TinyXML