Skip to content

Conversation

@jbangelo
Copy link
Contributor

@jbangelo jbangelo commented Apr 22, 2020

This updates the FindStarling modules to find the new interface library for the PVT engine.

@jbangelo jbangelo changed the title Jbangelo/pvt driver refactor [POS-51] Update the FindStarling modules Apr 23, 2020
@jbangelo jbangelo requested a review from woodfell April 23, 2020 19:53
Comment on lines +11 to +15
mark_target_as_system_includes(sensorfusion)
mark_target_as_system_includes(pvt_driver)
mark_target_as_system_includes(pvt-engine)
mark_target_as_system_includes(pvt-common)
mark_target_as_system_includes(starling-util)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should these check to make sure that the targets exists before marking them? if (TARGET sensorfusion) ... endif(), on the off chance that we might rename/remove some of these targets in the future.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like mark_target_as_system_includes will silently do nothing if the targets don't exist.

Are you thinking that we should be failing or giving a warning if the targets don't exist?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't expect that behaviour of the mark_target_as_system_includes function (sorry didn't dig to deep into it). I'd probably go with a warning, mostly because cmake is an external library library.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

my comment is really just a nit. I'll leave matt to approve the request since he knows this portion of the cmake work inside out. I don't see any isssues with this PR, I'm happy to approve.

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.

4 participants