Skip to content

Commit

Permalink
evaluate _pkg_name explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
dirk-thomas authored Apr 5, 2019
1 parent 7c1b7d0 commit 823e5b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ament_cmake_core/cmake/core/ament_execute_extensions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ macro(ament_execute_extensions extension_point)
"name and cmake filename")
endif()
list(GET _extension_list 0 _pkg_name)
list(GET _extension_list 1 _cmake_filename)
if(_pkg_name IN_LIST _ARG_EXCLUDE)
if("${_pkg_name}" IN_LIST _ARG_EXCLUDE)
continue()
endif()
list(GET _extension_list 1 _cmake_filename)
set(_extension_file "${${_pkg_name}_DIR}/${_cmake_filename}")
assert_file_exists("${_extension_file}"
"ament_execute_extensions(${extension_point}) registered extension '${_extension_file}' does not exist")
Expand Down

0 comments on commit 823e5b8

Please sign in to comment.