Skip to content

Xcode: Fixes path to OBJECT library for subproject

CMake generated XCODE_DEPEND_HELPER script for each project and subproject if CMAKE_XCODE_GENERATE_TOP_LEVEL_PROJECT_ONLY is OFF.

When project has suproject with OBJECT library CMake mentiones this library twice in each XCODE_DEPEND_HELPER script with two different paths, because the path depends on project. But library apprears only by path which is set in top level project (see attribute CONFIGURATION_BUILD_DIR).

This patch adds internal cache to remember build directory path which was set first time for any OBJECT library and this path is used then in all XCODE_DEPEND_HELPER scripts and in all projects.

Fixes: #20260 (closed)

Merge request reports