Skip to content
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

Cmake extras file installed by ament_cmake_export_dependencies may fail when rebuilding the workspace with a different build type #262

Open
ivanpauno opened this issue Jul 14, 2020 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@ivanpauno
Copy link
Contributor

The problem is in the line here:

get_target_property(_imported_implib ${_target} IMPORTED_IMPLIB_${_imported_configurations})

When rebuilding with a different build type _imported_configurations will be a list (e.g. NOCONFIG;RELEASE), and that makes the get_target_property call fail.

To reproduce:

colcon build --symlink-install --packages-up-to rosidl_typesupport_introspection_cpp
colcon build --symlink-install --packages-up-to rosidl_typesupport_introspection_cpp --cmake-args -DCMAKE_BUILD_TYPE=Release
@kenji-miyake
Copy link

Hello, I have the same problem with foxy.
I've tested in my environment that just cherry-picking #290 on origin/foxy can resolves this.
Is it possible to backport #290 to foxy?
Thank you.

@ivanpauno
Copy link
Contributor Author

Hello, I have the same problem with foxy.
I've tested in my environment that just cherry-picking #290 on origin/foxy can resolves this.
Is it possible to backport #290 to foxy?
Thank you.

I didn't know this issue was fixed by #290, I will double check locally.
Backporting #290 sounds fine to me, you would also will have to backport it togetehr with #296.

@kenji-miyake
Copy link

Although I've used https://github.com/kenji-miyake/ament_cmake/tree/foxy for a while, it seems there was no problem.
That includes #290 and #296 as @ivanpauno suggested.

$ git log --oneline
555be3e (HEAD -> foxy, origin/foxy) fix cmake list(TRANSFORM ) is only available from version 3.12, (#296)
e8f6bb3 fix imported targets with multiple configuration (#290)
a56c3be (tag: 0.9.8) 0.9.8

@ivanpauno Could you backport this, please? Or can I send a PR?

@ivanpauno
Copy link
Contributor Author

Or can I send a PR?

Sounds good to me, @hidmic does that sound good to you?

@hidmic
Copy link
Contributor

hidmic commented Apr 9, 2021

Sounds reasonable to me! We can close this issue then?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
3 participants