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

fix imported targets with multiple configuration #290

Merged
merged 2 commits into from
Oct 21, 2020
Merged

fix imported targets with multiple configuration #290

merged 2 commits into from
Oct 21, 2020

Conversation

siposcsaba89
Copy link
Contributor

Hi everyone,

I would like to propose a change to handle dependency packages with multiple configurations using debug | optimized keywords as stated in the cmake documentation:
https://cmake.org/cmake/help/v3.0/command/target_link_libraries.html

Best Regards,
Csaba

Signed-off-by: Csaba Sipos <siposcsaba89@gmail.com>
Signed-off-by: Csaba Sipos <siposcsaba89@gmail.com>
@dirk-thomas
Copy link
Contributor

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status (the four test failures are unrelated to this change and also appear in the recent builds of the nightly_win_rep job)

@dirk-thomas
Copy link
Contributor

Thank you for the patch.

@dirk-thomas dirk-thomas merged commit 110e58f into ament:master Oct 21, 2020
@azeey
Copy link

azeey commented Oct 27, 2020

list(TRANSFORM ...) is only available starting from cmake 3.12. As far as I can tell, the required cmake version for ament is 3.5

cmake_minimum_required(VERSION 3.5)
Would it be possible to make this work without TRANSFORM?

@siposcsaba89
Copy link
Contributor Author

list(TRANSFORM ...) is only available starting from cmake 3.12. As far as I can tell, the required cmake version for ament is 3.5

cmake_minimum_required(VERSION 3.5)

Would it be possible to make this work without TRANSFORM?

Yes, and sorry for the inconvenience, I should have checked it before creating the pull request. Plesase see: #296

hidmic pushed a commit that referenced this pull request Apr 12, 2021
…cmake (#290) (#296) (#331)

* fix imported targets with multiple configuration (#290)

* fix imported targets with multiple configuration

Signed-off-by: Csaba Sipos <siposcsaba89@gmail.com>

* taking into account DEBUG_CONFIGURATIONS global variable

Signed-off-by: Csaba Sipos <siposcsaba89@gmail.com>
Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

* fix cmake list(TRANSFORM ) is only available from version 3.12, (#296)

convert to string instead

Signed-off-by: Csaba Sipos <siposcsaba89@gmail.com>
Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

Co-authored-by: siposcsaba89 <siposcsaba89@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants