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

Apply the Beman Standard: cmake related rules #21

Merged

Conversation

neatudarius
Copy link
Member

@neatudarius neatudarius commented Nov 10, 2024

Updates:

  • TOPLEVEL.CMAKE - already applied.
  • CMAKE.DEFAULT - already applied.
  • CMAKE.PROJECT_NAME
  • CMAKE.LIBRARY_NAME
  • CMAKE.LIBRARY_ALIAS
  • CMAKE.TARGET_NAMES
  • CMAKE.SKIP_TESTS
  • CMAKE.AVOID_PASSTHROUGHS
  • FILE.LICENSE_ID (fill in missing spots from Apply the Beman Standard: license related rules #19)

NOTE: Small suggestions will be applied afterwards. We need this repo configured for next week presentation.

@neatudarius neatudarius force-pushed the apply_beman_standard/cmake_rules branch from 051ab21 to 4888aa1 Compare November 10, 2024 21:16
@neatudarius neatudarius changed the title Apply the Beman Standard: CMAKE.PROJECT_NAME Apply the Beman Standard: cmake related rules Nov 10, 2024
@neatudarius neatudarius force-pushed the apply_beman_standard/cmake_rules branch 2 times, most recently from d655126 to 3a4033c Compare November 10, 2024 21:38
@neatudarius neatudarius force-pushed the apply_beman_standard/cmake_rules branch from 3a4033c to 6c3c2ae Compare November 10, 2024 21:40
@neatudarius neatudarius marked this pull request as ready for review November 10, 2024 21:44
@@ -1,3 +1 @@
[submodule "papers/wg21"]
path = papers/P2988/wg21
Copy link
Member Author

@neatudarius neatudarius Nov 10, 2024

Choose a reason for hiding this comment

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

This paper is not related to iterator_interfaces (https://wg21.link/P2988). Left over from optional26 repo.

The author for iterator_interfaces does the work for paper outside this repo!

@@ -0,0 +1,85 @@
{
Copy link
Member Author

@neatudarius neatudarius Nov 10, 2024

Choose a reason for hiding this comment

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

Imported from optional26 repo. Will discuss more when we'll have a standard one from exemplar. For now, it's good enough.

@@ -0,0 +1,11 @@
root = @CMAKE_SOURCE_DIR@
Copy link
Member Author

@neatudarius neatudarius Nov 10, 2024

Choose a reason for hiding this comment

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

Imported from optional26 repo. Will discuss more when we'll have a standard one from exemplar. For now, it's good enough.

tests/CMakeLists.txt Show resolved Hide resolved
tests/CMakeLists.txt Outdated Show resolved Hide resolved
src/beman/iterator_interface/CMakeLists.txt Show resolved Hide resolved
CMakeLists.txt Outdated Show resolved Hide resolved
CMakeLists.txt Outdated Show resolved Hide resolved
CMakeLists.txt Outdated Show resolved Hide resolved
tests/CMakeLists.txt Outdated Show resolved Hide resolved
CMakeLists.txt Outdated Show resolved Hide resolved
CMakeLists.txt Outdated Show resolved Hide resolved
@steve-downey
Copy link
Member

steve-downey commented Nov 10, 2024 via email

@neatudarius
Copy link
Member Author

neatudarius commented Nov 10, 2024

I think the new Cmake formatter is more forgiving about it?

On Sun, Nov 10, 2024, 17:15 Darius Neațu @.> wrote: @.* commented on this pull request. ------------------------------ In tests/CMakeLists.txt <#21 (comment)> : > @@ -0,0 +1,26 @@ +# cmake-format: off It will mess these next 2 lines. Check the first 4 lines (we dont disable the check fo r the entire file! — Reply to this email directly, view it on GitHub <#21 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVNZ5RP4LI3RTHEEPPQRC3Z77LHJAVCNFSM6AAAAABRQPYGUSVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDIMRVHA3DMNRQG4 . You are receiving this because your review was requested.Message ID: @.***>

The long term approach would be do sync the formatter in exemplar and then revisit this topic in all repos.\

LE I actually tested and it breaks the license line:
image

An empty line or a "# (empty line after comment)" does not help.
CC: @steve-downey

@neatudarius neatudarius force-pushed the apply_beman_standard/cmake_rules branch from cea67d6 to dc36058 Compare November 11, 2024 09:33
@neatudarius neatudarius force-pushed the apply_beman_standard/cmake_rules branch from dc36058 to 266beab Compare November 11, 2024 09:36
@neatudarius neatudarius force-pushed the apply_beman_standard/cmake_rules branch from 266beab to faae4f8 Compare November 11, 2024 09:44
@RaduNichita
Copy link
Contributor

LGTM now! Thanks @neatudarius !

@neatudarius neatudarius merged commit 477a6de into bemanproject:main Nov 11, 2024
7 checks passed
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.

3 participants