Skip to content

Commit

Permalink
Fix return value from CMAKE_MODULE_PATH hook (#147)
Browse files Browse the repository at this point in the history
This was a regression introduced by
5704d83 which was hidden by some
nuanced API characteristics for environment hook extensions, which would
manifest as silently missing environment hooks for CMAKE_MODULE_PATH.
  • Loading branch information
cottsay authored Nov 22, 2024
1 parent 448bef9 commit 90e6dc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion colcon_cmake/environment/cmake_module_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def create_environment_hooks(self, prefix_path, pkg_name): # noqa: D102
str(path.relative_to(prefix_path)),
mode='prepend')

return hooks.values()
return [hook for hook_list in hooks.values() for hook in hook_list]

def _get_potential_cmake_module_paths(self, prefix_path, pkg_name):
paths = []
Expand Down

0 comments on commit 90e6dc6

Please sign in to comment.