Skip to content

Xcode26 support#1091

Open
mcoliver wants to merge 6 commits intoAcademySoftwareFoundation:mainfrom
mcoliver:xcode26
Open

Xcode26 support#1091
mcoliver wants to merge 6 commits intoAcademySoftwareFoundation:mainfrom
mcoliver:xcode26

Conversation

@mcoliver
Copy link
Contributor

[ 1090: Build with Xcode26 ]

Linked issues

Fixes #1090

Summarize your change.

Backported a patch to Qt 6.5.3 and 6.8.3 which are the community versions available and do not have the patch in commercial versions

Describe the reason for the change.

Want to build with Xcode26. Was annoying to constantly have to switch with xcode-select. Additionally xcode26 should bring some compiler optimizations that may improve performance.

Describe what you have tested and on which operating system.

macos26.2 with Xcode26.2. RV CY2025

Signed-off-by: Michael Oliver <mcoliver@gmail.com>
XCode26 was refusing to build Qt 6.5.3 and 6.8.3 because it lacks AGL.  AGL is no longer used and newer versions of Qt have patched.  This is a backport to patch 6.5.3 and 6.8.3.

For reference:
https://qt-project.atlassian.net/browse/QTBUG-137687
qt/qtbase@cdb33c3
Homebrew/homebrew-core@9ef0937

Signed-off-by: Michael Oliver <mcoliver@gmail.com>
updated cmake/dependencies/python3.cmake to use the IMPORTED_NO_SYSTEM property for the Python::Python target. This ensures that the Python include paths are treated as regular include paths (-I) rather than system include paths (-isystem), which resolves search order issues on newer Xcode versions.

Signed-off-by: Michael Oliver <mcoliver@gmail.com>
Signed-off-by: Michael Oliver <mcoliver@gmail.com>
cmake-format -i CMakeLists.txt cmake/**/*.cmake

Signed-off-by: Michael Oliver <mcoliver@gmail.com>
Comment on lines 531 to 534
SET_TARGET_PROPERTIES(
Python::Python
PROPERTIES IMPORTED_NO_SYSTEM ON
)
Copy link
Contributor

Choose a reason for hiding this comment

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

What issue did you encounter that needed this change?

Also, IMPORTED_NO_SYSTEM is deprecated since CMake 3.25. Could you use the alternative?
https://cmake.org/cmake/help/v3.31/prop_tgt/IMPORTED_NO_SYSTEM.html

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I should have saved the full message. Without that command I was getting a message along the lines ofUnable to find Python.h. Nice find on the deprecation. We can use SYSTEM FALSE instead. I have pushed a new commit.

@cedrik-fuoco-adsk cedrik-fuoco-adsk added the do not merge Do not merge the PR label Jan 28, 2026
See this link for more details https://cmake.org/cmake/help/v3.31/prop_tgt/IMPORTED_NO_SYSTEM.html

Signed-off-by: Michael Oliver <mcoliver@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do not merge Do not merge the PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Build with Xcode26

2 participants