Files
CMake/Tests/RunCMake/FileAPI/codemodel-v2-data/targets/apple_exe_framework.json
Brad King 7b19531291 macOS: Do not pass any SDK/-isysroot to compilers by default
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
2024-11-07 09:46:10 -05:00

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
}
]
}
]
}
}