Skip to content

Standardize 'CMAKE_SYSTEM_PROCESSOR' values#108

Merged
MarkSchofield merged 1 commit intomainfrom
mschofie/system-processor
Sep 1, 2024
Merged

Standardize 'CMAKE_SYSTEM_PROCESSOR' values#108
MarkSchofield merged 1 commit intomainfrom
mschofie/system-processor

Conversation

@MarkSchofield
Copy link
Copy Markdown
Owner

WindowsToolchain doesn't use CMAKE_SYSTEM_PROCESSOR correctly. This change moves to fix it:

  1. The toolchain incorrectly uses lowercase values of 'x86', 'arm' and 'arm64'. This change switches to use uppercase values, but also accept lowercase values with a warning.
  2. The toolchain originally used 'x64' instead of 'AMD64' for the CMAKE_SYSTEM_PROCESSOR, and has allowed both for a while. This change now logs a warning on use of 'x64', advocating for 'AMD64' instead.
  3. This PR moves the 'examples' folder to only use correct CMAKE_SYSTEM_PROCESSOR values.

@MarkSchofield MarkSchofield merged commit 9fb8677 into main Sep 1, 2024
@MarkSchofield MarkSchofield deleted the mschofie/system-processor branch September 1, 2024 23:50
InCom-0 pushed a commit to InCom-0/cmake_WindowsToolchain that referenced this pull request Mar 10, 2026
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.

1 participant