Skip to content

Xcode: Revise expression of build product locations to Xcode

Mikko Lehtonen requested to merge scoopr/cmake:fix-xcode-symroot into master

Xcode generator sets the SYMROOT of the project to something like "$(CMAKE_BINARY_DIR)/build", which is ok, but then proceeds overriding that in the target level as just "$(CMAKE_BINARY_DIR)".

This causes the "Clean" action of Xcode to fail as it doesn't like to clean the directory where the xcodeproj resides in.

The fix is simply to not set the incorrect value at the target level, which makes it use the project level value.

Fixes: #22550 (closed)

Edited by Brad King

Merge request reports