Skip to content

adapt CMP0195#359

Merged
eagleoflqj merged 2 commits intomasterfrom
dev
Apr 12, 2026
Merged

adapt CMP0195#359
eagleoflqj merged 2 commits intomasterfrom
dev

Conversation

@eagleoflqj
Copy link
Copy Markdown
Member

No description provided.

@github-actions
Copy link
Copy Markdown

arm64 comparison

No difference.

x86_64 comparison

No difference.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the project’s CMake configuration to align Swift target handling with newer CMake behavior/policy (CMP0195), centralizing the target triple into a single variable.

Changes:

  • Bump cmake_minimum_required and define a Swift target triple (CMAKE_Swift_COMPILER_TARGET) derived from macOS deployment target + architecture.
  • Use the new target triple for global compile/link -target flags.
  • Update Swift helper CMake modules to use CMAKE_Swift_COMPILER_TARGET instead of the removed F5M_TARGET.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
CMakeLists.txt Defines deployment/target settings and applies -target flags globally.
cmake/InitializeSwift.cmake Uses the shared Swift target triple when querying Swift target info.
cmake/AddSwift.cmake Uses the shared Swift target triple when generating the C++ bridging header.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread CMakeLists.txt
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread CMakeLists.txt
Comment thread CMakeLists.txt
@eagleoflqj eagleoflqj merged commit 4a0d680 into master Apr 12, 2026
11 checks passed
@eagleoflqj eagleoflqj deleted the dev branch April 12, 2026 03:01
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.

2 participants