Repository navigation
Don't put the extension modules in a per-config subdirectory - #272
Open
baszalmstra wants to merge 1 commit into
Open
baszalmstra wants to merge 1 commit into
baszalmstra wants to merge 1 commit into
Conversation
With a multi-config generator such as Visual Studio, the LIBRARY_OUTPUT_DIRECTORY and RUNTIME_OUTPUT_DIRECTORY of the <pkg>_s__<typesupport> extension modules get a per-configuration subdirectory appended, so the modules are built into rosidl_generator_py/<pkg>/Release/. That directory is the Python package that ament_python_install_package installs as a whole, so every package ships a second copy of each module in site-packages/<pkg>/Release/, next to the one installed by install(TARGETS). Wrap the output directory in a generator expression, which tells CMake not to append the subdirectory. The modules now end up directly in the package directory, which is where they are imported from. Signed-off-by: Bas Zalmstra <4995967+baszalmstra@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
With Visual Studio, the extension modules are built into
<pkg>/Release/, so a second copy of each is installed insite-packages/<pkg>/Release/. This builds them directly into the package directory.Is this user-facing behavior change?
Did you use Generative AI?
Yes. The change, the commit message and this description were written with Claude Opus 5.5 (Anthropic,
claude-opus-5-5), used through a coding agent.