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

CFE needs to compile with the interface properties provided by OSAL #581

Closed
jphickey opened this issue Apr 2, 2020 · 1 comment · Fixed by #585
Closed

CFE needs to compile with the interface properties provided by OSAL #581

jphickey opened this issue Apr 2, 2020 · 1 comment · Fixed by #585
Assignees
Milestone

Comments

@jphickey
Copy link
Contributor

jphickey commented Apr 2, 2020

Is your feature request related to a problem? Please describe.
After the changes introduced by nasa/osal#312, the OSAL CMake script will no longer force setting of CMAKE_C_FLAGS directly in the CFE build by overwriting this value (which is good).

Instead, any required compile definitions and related information will be conveyed in the more appropriate manner, through the INTERFACE_COMPILE_DEFINITIONS and INTERFACE_INCLUDE_DIRECTORIES on the "osal" library target.

Describe the solution you'd like
To work with this change, the CFE needs to explicitly check these properties on the osal target and use the values. By setting a directory-scope property at the top level, it will apply to all code.

Describe alternatives you've considered
CMake does this automatically so long as the executable directly links with OSAL. However, this doesn't apply to the apps which are built as a MODULE. This is why it is easier to set the directory property so its all-inclusive.

Requester Info
Joseph Hickey, Vantage Systems, Inc.

@jphickey jphickey self-assigned this Apr 2, 2020
@jphickey
Copy link
Contributor Author

jphickey commented Apr 2, 2020

Note this should supercede the previous request in #532. That approach had issues where the flags were not being correctly applied to app code.

jphickey added a commit to jphickey/cFE that referenced this issue Apr 2, 2020
Use the INTERFACE_COMPILE_DEFINITIONS and INTERFACE_INCLUDE_DIRECTORIES
properties from the osal target and apply them to the entire CFE build.

At this time, the OSAL library build does not use/export these properties
so this is effectively a no-op for the CFE build and can be merged with
no effect.  However, in a future version, the OSAL library will export
these interface properties and this will become important.
astrogeco added a commit that referenced this issue Apr 14, 2020
Fix #581, Propagate the OSAL compile definitions to CFE build
@skliper skliper added this to the 6.8.0 milestone Sep 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants