summaryrefslogtreecommitdiffstats
path: root/src/gui/doc/snippets/textdocument-css/main.cpp
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2025-07-31 16:47:47 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2025-07-31 20:25:59 +0000
commite462567183c3791afbbab40a7d90513c3d283ae6 (patch)
tree9373feaf92f5cc118a6c31dd598b4dc53b0124f8 /src/gui/doc/snippets/textdocument-css/main.cpp
parent1e367f2f8ccb95f9bdf93e3d6ddbb38ce2a9d13f (diff)
cmake: Persist macOS SDK name, to work around CMake 4.x
CMake 4 stopped passing explicit toolchain and SDK paths, which results in lots of sharp corners. For example, with xcode-select pointing to /Applications/Xcode.app but with Xcode command line tools installed, CMake will build with /usr/bin/c++, which xcrun resolves to the Xcode toolchain, but as CMake doesn't pass a sysroot, it ends up using the command line tools SDK. This is bad and surprising when the selected Xcode version's SDKs doesn't match the command line tools. CMake 4.0.2 was supposed to fix this, but it seemingly doesn't work. As a workaround, set CMAKE_OSX_SYSROOT for macOS as well, which triggers CMake or xcrun to pass a sysroot, giving us what we want. Pick-to: 6.10 6.9 6.8 6.5 Change-Id: Ia6d051477a48c4c8e5e90feae67cc8d2734d8e1b Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'src/gui/doc/snippets/textdocument-css/main.cpp')
0 files changed, 0 insertions, 0 deletions