-
Notifications
You must be signed in to change notification settings - Fork 26
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
Modified cmake projects #155
Merged
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
444aa4e
Modify the cmake projects to only allow one library to be built at a …
phlptp ee18a74
update the cmake for building the test to run with the shared library
phlptp 569c24e
update azure pipelines
phlptp b88454f
tweak the travis builds
phlptp b7eb115
try reordering the tests
phlptp 9dc6478
more travis build updates
phlptp ae61f44
change the header_only target
phlptp a03421a
Automated formatting of repo files (#156)
github-actions[bot] 6806410
add installer tests
phlptp 2bc410b
more tries at installer test
phlptp e50ce8d
try a separate config file
phlptp 636880f
add config template
phlptp 5a8e11d
update header_only test case
phlptp 20ddee8
update some more docs
phlptp d019ed3
fix issue with the install location for built executables
phlptp 676d09f
Automated formatting of repo files (#157)
github-actions[bot] 4fd73d2
add missing includes
phlptp 27328ae
Merge branch 'modified_cmake_projects' of /~https://github.com/LLNL/uni…
phlptp 487cd04
update include paths and remove some warnings on MSVC
phlptp f28293d
Automated formatting of repo files (#158)
github-actions[bot] 6b1d26b
update cpplint to ignore more issues that are not relevent
phlptp 7d492f2
Merge branch 'modified_cmake_projects' of /~https://github.com/LLNL/uni…
phlptp File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The block:
looks a little hardcoded but I can't propose anything better.
The only thing I can propose is to check whether the developper have checked
ON
only one option from these three (UNITS_BUILD_STATIC_LIBRARY , UNITS_BUILD_SHARED_LIBRARY, UNITS_HEADER_ONLY
) and if there are for example bothUNITS_BUILD_STATIC_LIBRARY =ON
andUNITS_BUILD_SHARED_LIBRARY=ON
we could send a message (WARNING
or evenFATAL_ERROR
) telling that only one library at a time can be built.Without this it is difficult to predict how the library is going to be built (shared/static/header_only or their combinations) and the developper would need to skim the cmake code to figure that out.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added some warnings to check if more than one of UNITS_BUILD_STATIC_LIBRARY, UNITS_BUILD_SHARED_LIBRARY, and UNITS_BUILD_OBJECT_LIBRARY is set, and if you set all three you will get two warnings.