Skip to content

Xcode: Inherit target library and framework search paths from project

Gusts Kaksis requested to merge gusc/cmake:xcode-inherit-paths into master

Xcode has multiple levels of build settings with priority in descending order:

  1. Target
  2. Project
  3. Workspace
  4. SDK defaults

CMAKE_XCODE_ATTRIBUTE_* path variables add these to project level, but linked frameworks and libraries override this in target. This fix adds $(inherited) macro to keep both in the final list.

Fixes: #21387 (closed)
Backport: release

Edited by Brad King

Merge request reports