mirror of
https://github.com/Kitware/CMake.git
synced 2026-07-06 06:37:24 +00:00
On modern macOS, compiler wrappers like `/usr/bin/cc` automatically choose a SDK to pass via `-isysroot` to an underlying compiler from Xcode or the CommandLineTools. Other toolchains like Homebrew's `gcc-*` come with a default SDK too. Therefore, when targeting macOS, we no longer need to choose any SDK or pass an `-isysroot` flag by default. Update initialization of `CMAKE_OSX_SYSROOT` to be empty by default when targeting macOS. Fixes: #19180
80 lines
2.6 KiB
JSON
80 lines
2.6 KiB
JSON
{
|
|
"compileGroups":
|
|
[
|
|
{
|
|
"language": "CXX",
|
|
"sourcePaths": [
|
|
"^empty\\.cxx$"
|
|
],
|
|
"includes": null,
|
|
"defines": null,
|
|
"frameworks":
|
|
[
|
|
{
|
|
"isSystem": null,
|
|
"path": "^.*/framework/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?static_framework.framework",
|
|
"backtrace": null
|
|
},
|
|
{
|
|
"isSystem": true,
|
|
"path": "^.+/framework/((Debug|Release|RelWithDebInfo|MinSizeRel)/)?shared_framework.framework",
|
|
"backtrace": null
|
|
},
|
|
{
|
|
"isSystem": true,
|
|
"path": "/usr/Frameworks/Foo.framework",
|
|
"backtrace": null
|
|
}
|
|
],
|
|
"compileCommandFragments": null
|
|
}
|
|
],
|
|
"link": {
|
|
"language": "CXX",
|
|
"lto": null,
|
|
"commandFragments": [
|
|
{
|
|
"fragment": "-F.+/framework(/(Debug|Release|RelWithDebInfo|MinSizeRel))?\"? -F/usr/Frameworks$",
|
|
"role": "frameworkPath",
|
|
"backtrace": null
|
|
},
|
|
{
|
|
"fragment": ".*static_framework\\.framework/.+/static_framework",
|
|
"role": "libraries",
|
|
"backtrace": [
|
|
{
|
|
"file": "^framework/CMakeLists\\.txt$",
|
|
"line": 17,
|
|
"command": "target_link_libraries",
|
|
"hasParent": true
|
|
},
|
|
{
|
|
"file": "^framework/CMakeLists\\.txt$",
|
|
"line": null,
|
|
"command": null,
|
|
"hasParent": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"fragment": ".*shared_framework\\.framework/.+/shared_framework",
|
|
"role": "libraries",
|
|
"backtrace": [
|
|
{
|
|
"file": "^framework/CMakeLists\\.txt$",
|
|
"line": 17,
|
|
"command": "target_link_libraries",
|
|
"hasParent": true
|
|
},
|
|
{
|
|
"file": "^framework/CMakeLists\\.txt$",
|
|
"line": null,
|
|
"command": null,
|
|
"hasParent": false
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|