Skip to content

CMake: Use cmake toolchain file #13540

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 1 commit into from
Sep 3, 2020

Conversation

0xc0170
Copy link
Contributor

@0xc0170 0xc0170 commented Sep 3, 2020

Summary of changes

Using CMake way to select toolchain file - CMAKE_TOOLCHAIN_FILE variable. Toolchain is included by the CMake system. It also allows to be overwritten (user's toolchain file).

I took these changes from #13427 with fixes found there in the review.

Impact of changes

Migration actions required

Documentation


Pull request type

[x] Patch update (Bug fix / Target update / Docs update / Test update / Refactor)
[] Feature update (New feature / Functionality change / New API)
[] Major update (Breaking change E.g. Return code change / API behaviour change)

Test results

[x] No Tests required for this change (E.g docs only update)
[] Covered by existing mbed-os tests (Greentea or Unittest)
[] Tests / results supplied as part of this PR

Reviewers


@ciarmcom
Copy link
Member

ciarmcom commented Sep 3, 2020

@0xc0170, thank you for your changes.
@ARMmbed/mbed-os-maintainers please review.

@ciarmcom ciarmcom requested a review from a team September 3, 2020 11:30
@0xc0170 0xc0170 mentioned this pull request Sep 3, 2020
6 tasks
@0xc0170
Copy link
Contributor Author

0xc0170 commented Sep 3, 2020

I should squash 5 commits into one ,as the change is simple and all related to together.

@mergify
Copy link

mergify bot commented Sep 3, 2020

This PR cannot be merged due to conflicts. Please rebase to resolve them.

@0xc0170 0xc0170 force-pushed the fix_cmake_toolchain_file branch from 0781eeb to 2c796db Compare September 3, 2020 13:23
We should define CMAKE_TOOLCHAIN_FILE (as we are providing Mbed OS toolchain file). This fixes
also the issue we had with Unix makefiles where application would be without response files.

For more details, see https://gitlab.kitware.com/cmake/cmake/-/issues/21104

As the Mbed OS toolchain file is included by CMake, we need to have enabling language in the main CMake (can be executed
only once).
@0xc0170 0xc0170 force-pushed the fix_cmake_toolchain_file branch from 2c796db to 9d75c75 Compare September 3, 2020 13:28
@0xc0170
Copy link
Contributor Author

0xc0170 commented Sep 3, 2020

Rebased, ready for review

@0xc0170 0xc0170 merged commit ece8747 into ARMmbed:feature-cmake Sep 3, 2020
@mergify mergify bot removed the ready for merge label Sep 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants