-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix failure in config file installed by ament_cmake_export_dependencies when using more than one build type #263
Conversation
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
This seem to not be the right approach. I got a link error when building lifecycle, likely related to this change in my local workspace. |
Does it actually enter the if block |
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
Good point, generators expressions can't be used everywhere. |
if(_imported_implib) | ||
list(APPEND _libraries "${_imported_implib}") | ||
else() | ||
get_target_property(_imported_location ${_target} IMPORTED_LOCATION_${_imported_configurations}) | ||
get_target_property(_imported_location ${_target} IMPORTED_LOCATION_$<CONFIG>) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it seems that generator expressions can't be used in get_target_property
either, so $<CONFIG>
is not being solved correctly 😕
@ivanpauno is this still a valid PR? |
Hi everyone, I just run into the same issue, when compiling ros2 on windows against libraries built with vcpkg, I wanted to also report the issue then I saw this PR, my solution is a little bit different: https://github.com/siposcsaba89/ament_cmake/commit/d36265934f022f97e674311dcb0039ed8c26b2e6 Thanks, |
The PR tries to fix something that's still an issue, I was blocked on this comment and didn't find a way to workaround that problem.
Hi @siposcsaba89, your patch sounds reasonable to me, can you open a PR? |
Hi @ivanpauno , Of course, here it is #290 BR, |
Fixes #262.
I'm not sure what we should do if the current configuration doesn't match any of the imported configurations.
Should
IMPORTED_IMPLIB
andIMPORTED_LOCATION
be used in that case instead of the config specific ones?Should one config be picked randomly from the imported configs?