Skip to content

Used cmake-format on CMakeLists.txt #11230

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

Merged
merged 2 commits into from
May 30, 2025
Merged

Conversation

BujSet
Copy link
Contributor

@BujSet BujSet commented May 29, 2025

Summary

Fixes #<10736> : #10736 (comment)

Changes I Made

cmake-format -i CMakeLists.txt

cmake-lint CMakeLists.txt

The linting reported an [E1122] Duplicate keyword argument error for variable DESTINATION. I deleted the earlier setting of this variable, as the comment seemed to imply that lib should not be the appropriate destination.

Test plan

Successfully ran the commands in the building from source guide. I did try running the test commands from the Testing, however, these reported error on a clean install. No new errors were reported when I made these changes.

Copy link

pytorch-bot bot commented May 29, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/11230

Note: Links to docs will display an error until the docs builds have been completed.

❌ 1 New Failure

As of commit d225762 with merge base e84c319 (image):

NEW FAILURE - The following job has failed:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot
Copy link
Contributor

Hi @BujSet!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at [email protected]. Thanks!

@BujSet
Copy link
Contributor Author

BujSet commented May 29, 2025

@pytorchbot label "release notes: none"

@pytorch-bot pytorch-bot bot added the release notes: none Do not include this in the release notes label May 29, 2025
@facebook-github-bot
Copy link
Contributor

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 29, 2025
@BujSet BujSet marked this pull request as ready for review May 29, 2025 20:35
CMakeLists.txt Outdated
@@ -45,7 +45,8 @@
cmake_minimum_required(VERSION 3.24)
project(executorch)

# MARK: - Start EXECUTORCH_H12025_BUILD_MIGRATION --------------------------------------------------
# MARK: - Start EXECUTORCH_H12025_BUILD_MIGRATION
# --------------------------------------------------
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
# --------------------------------------------------

CMakeLists.txt Outdated
@@ -82,24 +83,25 @@ include(${PROJECT_SOURCE_DIR}/tools/cmake/preset/default.cmake)
# Print all the configs that were called with announce_configured_options.
print_configured_options()

# MARK: - End EXECUTORCH_H12025_BUILD_MIGRATION ----------------------------------------------------
# MARK: - End EXECUTORCH_H12025_BUILD_MIGRATION
# ----------------------------------------------------
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
# ----------------------------------------------------

CMakeLists.txt Outdated
Comment on lines 98 to 101
# the rpath (per library?) TODO: Doesn't work for us right now because we are
# not installing .so's into the correct locations. For example we have
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should keep the TODO as a separate paragraph like it was before

BujSet added 2 commits May 29, 2025 14:45
Removing unnecessary comment lines used for segmenting the file and
splitting larger comments as they were before the cmake-format pass.
@BujSet BujSet force-pushed the formatting_cmakelists branch from 1e72783 to d225762 Compare May 29, 2025 21:45
@BujSet BujSet merged commit b02ac1b into pytorch:main May 30, 2025
168 of 169 checks passed
@BujSet BujSet deleted the formatting_cmakelists branch June 13, 2025 02:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. release notes: none Do not include this in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants