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

Some initial refactorings and cleanup for combining packages and TPLs (#63) #526

Merged

Conversation

bartlettroscoe
Copy link
Member

This PR contains a few misc commits that I created while working on the refactorings and extensions for #63.

I did not want to mix these in with the huge PR that will contain a bunch of renames and will touch thousands of lines of files.

Notes to Reviewers

  • Please review these commits one commit at a time and the patches one commit at a time.

While working on #63 I noticed that this file was not even being checked
anymore.  Therefore, I removed the file and I removed the code that read this
file in (and then did nothing with it).
While looking over this function I realized it had a few problems:

* The documentation said it would assert that the list var must be defined but
  the code just did assert_defined(VARIABLE_NAME) which only asserted that the
  function parameter 'VARAIBLE_NAME' was defined (which is always defined)
  instead of the list variable ${VARIABLE_NAME}.  Therefore, I just took out
  the assert and updated the documentation to not even mention asserting.

* The function made it sound like the input value of the bool var was
  important but it is not.  The input value is not even checked.  The variable
  is only set if the list is non-empty.  Therefore, I changed the name from
  <printedVarInOut> (PRINTED_VAR_OUT) to <printedVarOut> (printedVarOut).

I had to remove the assert_defined() because there was some existing usage
that was actaully passing in some undefined list vars and breaking TriBITS.
The inner TriBITS logic is much simpler after the transition to modern CMake
targets (#299)
@bartlettroscoe
Copy link
Member Author

Hello @KyleFromKitware, can you please give this a quick review if you have some time today? I will need to create the next huge PR against this one to show unique diffs to the PR.

@KyleFromKitware
Copy link
Collaborator

+1

Copy link
Collaborator

@rabartlett1972 rabartlett1972 left a comment

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants