Skip to content

Commit

Permalink
change path order
Browse files Browse the repository at this point in the history
  • Loading branch information
leus committed Mar 29, 2021
1 parent 928c88c commit f733de0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rtmbuild/cmake/rtmbuild.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -137,15 +137,17 @@ macro(rtmbuild_init)
rosbuild_gensrv()
endif()

include_directories(${catkin_INCLUDE_DIRS} ${openrtm_aist_INCLUDE_DIRS} ${openhrp3_INCLUDE_DIRS})
#include_directories(${catkin_INCLUDE_DIRS} ${openrtm_aist_INCLUDE_DIRS} ${openhrp3_INCLUDE_DIRS})
include_directories( ${openhrp3_INCLUDE_DIRS} ${openrtm_aist_INCLUDE_DIRS} ${catkin_INCLUDE_DIRS})
# since catkin > 0.7.0, the CPATH is no longer being set by catkin, so rtmbuild manually add them
set(_cmake_prefix_path_tmp $ENV{CMAKE_PREFIX_PATH})
string(REPLACE ":" ";" _cmake_prefix_path_tmp ${_cmake_prefix_path_tmp})
foreach(_cmake_prefix_path ${_cmake_prefix_path_tmp})
include_directories(${_cmake_prefix_path}/include)
endforeach()

link_directories(${catkin_LIBRARY_DIRS} ${openrtm_aist_LIBRARY_DIRS} ${openhrp3_LIBRARY_DIRS})
#link_directories(${catkin_LIBRARY_DIRS} ${openrtm_aist_LIBRARY_DIRS} ${openhrp3_LIBRARY_DIRS})
link_directories(${openhrp3_LIBRARY_DIRS} ${openrtm_aist_LIBRARY_DIRS} ${catkin_LIBRARY_DIRS})

endmacro(rtmbuild_init)

Expand Down

0 comments on commit f733de0

Please sign in to comment.