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

Revamp blt_convert_to_system_includes #671

Open
wants to merge 19 commits into
base: develop
Choose a base branch
from

Conversation

adayton1
Copy link
Member

@adayton1 adayton1 commented Jan 10, 2024

  • Allow passing multiple targets (TARGETS [...])
  • Follow transitive dependencies (unless CHILDREN is set to FALSE)
  • Warn if target does not exist or if using the PGI compiler (unless QUIET is specified)
  • Warn about deprecated TARGET option

@adayton1
Copy link
Member Author

adayton1 commented Jan 10, 2024

We frequently have multiple targets to handle (e.g. all the axom targets), so it's a definite upgrade to handle them all in one invocation.

Perhaps I'm thinking about the transitive dependencies incorrectly, but it seems like if we change a library's interface include directories to system include directories, but don't do that for one of its dependencies, a warning from its dependency could propagate up. If I'm wrong about that, please let me know.

The other case I'm thinking about is where some targets may or may not exist depending on the build configuration (e.g. if some of axom's components are turned off). It would be easier just to specify them all in the same invocation and have the function ignore them. For safety, it would warn by default if the target does not exist (only for the targets specified by the user). To turn off the warnings, you could specify QUIET. Another way to handle this would be to have both TARGETS and OPTIONAL_TARGETS as options (or REQUIRED_TARGETS and OPTIONAL_TARGETS). Or handling of possibly existing targets could be left to the user. A further complication is how to deal with transitive dependencies that may not exist (or may not be targets - is that possible?).

Co-authored-by: Chris White <white238@llnl.gov>
@adayton1
Copy link
Member Author

I think the tests just timed out rather than failed.

endif()

if(NOT DEFINED arg_CHILDREN)
set(arg_CHILDREN TRUE)
Copy link
Member

Choose a reason for hiding this comment

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

@kennyweiss should this default to true? I'm torn...

Copy link
Member Author

Choose a reason for hiding this comment

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

Is this the last blocker?

Copy link
Member Author

Choose a reason for hiding this comment

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

Would you like me to change this?

Copy link
Member Author

Choose a reason for hiding this comment

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

The default is now FALSE.

@white238
Copy link
Member

This needs a line added to RELEASE_NOTES

@adayton1
Copy link
Member Author

This needs a line added to RELEASE_NOTES

Done.

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

2 participants