File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
ament_cmake_core/cmake/core/templates
ament_cmake_export_include_directories/cmake
ament_cmake_export_libraries/cmake Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -37,12 +37,12 @@ set(@PROJECT_NAME@_FOUND_AMENT_PACKAGE TRUE)
3737
3838# Compute relocatable install prefix. This is pretty much the same code as it
3939# is generated by the CMakePackageConfigHelpers module.
40- get_filename_component (AMENT_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_DIR} /../../../" ABSOLUTE )
40+ get_filename_component (@ PROJECT_NAME @_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_DIR} /../../../" ABSOLUTE )
4141# Use original install prefix if the package was merely found via symlink alias
4242get_filename_component (_realCurr "${CMAKE_CURRENT_LIST_DIR} " REALPATH)
4343get_filename_component (_realOrig "@CMAKE_INSTALL_PREFIX@/share/@PROJECT_NAME@/cmake" REALPATH)
4444if (_realCurr STREQUAL _realOrig)
45- set (AMENT_IMPORT_PREFIX "@CMAKE_INSTALL_PREFIX@" )
45+ set (@ PROJECT_NAME @_IMPORT_PREFIX "@CMAKE_INSTALL_PREFIX@" )
4646endif ()
4747unset (_realCurr)
4848unset (_realOrig)
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ macro(ament_export_include_directories)
3737 if (NOT IS_ABSOLUTE "${_arg} " )
3838 # prefix relative paths with CMAKE_INSTALL_PREFIX
3939 # while avoiding to embed any absolute path
40- set (_arg "\$ {AMENT_IMPORT_PREFIX }/${_arg} " )
40+ set (_arg "\$ {${PROJECT_NAME} _IMPORT_PREFIX }/${_arg} " )
4141 list_append_unique(_AMENT_EXPORT_RELATIVE_INCLUDE_DIRECTORIES "${_arg} " )
4242 else ()
4343 if (NOT IS_DIRECTORY "${_arg} " )
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ if(NOT _exported_libraries STREQUAL "")
3939 set (_lib "NOTFOUND" )
4040 find_library (
4141 _lib NAMES "${_library} "
42- PATHS "${AMENT_IMPORT_PREFIX } /lib"
42+ PATHS "${@PROJECT_NAME@_IMPORT_PREFIX }/lib"
4343 NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH
4444 )
4545
You can’t perform that action at this time.
0 commit comments