External tools may create a `.xcworkspace` directory next to the `.xcodeproj` directory that CMake generates. If a workspace exists, drive the build through it instead. Closes: #26958 Co-authored-by: Brad King <brad.king@kitware.com>