Skip to content

Handle non-library tokens in _LIBRARIES.#248

Merged
dirk-thomas merged 2 commits intomasterfrom
hidmic/handle-non-library-tokens
Apr 23, 2020
Merged

Handle non-library tokens in _LIBRARIES.#248
dirk-thomas merged 2 commits intomasterfrom
hidmic/handle-non-library-tokens

Conversation

@hidmic
Copy link
Copy Markdown

@hidmic hidmic commented Apr 23, 2020

Up quickly to fix https://ci.ros2.org/job/ci_linux/10438. Connext seems to be passing target_link_libraries() keywords like optimized and linker flags like -Wl,--no-as-needed via _LIBRARIES. That, coupled with a non-empty _LIBRARY_DIRS, makes added existence checks in #245 fail.

I'm almost sure this is the right fix (at least for the short term).

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
@hidmic hidmic requested review from dirk-thomas and ivanpauno April 23, 2020 16:54
@hidmic
Copy link
Copy Markdown
Author

hidmic commented Apr 23, 2020

CI up to rmw_connext_cpp:

  • macOS Build Status

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
@dirk-thomas
Copy link
Copy Markdown
Contributor

👍 to merge without CI.

@j-rivero
Copy link
Copy Markdown

+1 Can the presence of compilation/linking flags in _LIBRARIES be consider as a developer error or problem? In that case we might add a warning somehow. Does not need to be in this PR.

@j-rivero j-rivero self-requested a review April 23, 2020 17:27
@dirk-thomas
Copy link
Copy Markdown
Contributor

Can the presence of compilation/linking flags in _LIBRARIES be consider as a developer error or problem?

No, because some package do pass those through _LIBRARIES (even though that is not recommended).

Also there hasn't been a warning for this in the past so we shouldn't introduce one now and here.

@dirk-thomas dirk-thomas merged commit d533102 into master Apr 23, 2020
@delete-merged-branch delete-merged-branch bot deleted the hidmic/handle-non-library-tokens branch April 23, 2020 17:28
j-rivero pushed a commit that referenced this pull request Apr 27, 2020
* Handle non-library tokens in _LIBRARIES.

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>

* Drop spaces on  clauses.

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Signed-off-by: Jose Luis Rivero <jrivero@osrfoundation.org>
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.

3 participants