Skip to content

Commit

Permalink
Use CMAKE_CURRENT_BINARY_DIR instead of CMAKE_BINARY_DIR in ament_gen…
Browse files Browse the repository at this point in the history
…erate_environment (#485)

Signed-off-by: Silvio Traversaro <silvio.traversaro@iit.it>
  • Loading branch information
traversaro committed Nov 2, 2023
1 parent 261214a commit 3af99e4
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -44,10 +44,10 @@ function(ament_generate_environment)
get_filename_component(name "${name}" NAME)
configure_file(
"${file}"
"${CMAKE_BINARY_DIR}/ament_cmake_environment/${name}"
"${CMAKE_CURRENT_BINARY_DIR}/ament_cmake_environment/${name}"
@ONLY
)
set(file "${CMAKE_BINARY_DIR}/ament_cmake_environment/${name}")
set(file "${CMAKE_CURRENT_BINARY_DIR}/ament_cmake_environment/${name}")
endif()

install(
Expand Down

0 comments on commit 3af99e4

Please sign in to comment.