summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/SymlinkTrees
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-02-24 23:12:22 (GMT)
committerBrad King <brad.king@kitware.com>2022-02-28 15:24:34 (GMT)
commitde766bc7e0f4a856abc712e64e4248e966ced37f (patch)
tree8f1c7a3cda368c86597348fd37ca4c26951c3f53 /Tests/RunCMake/SymlinkTrees
parent55db2cf1e59a2138992ae673db96c0a40f87324a (diff)
downloadCMake-de766bc7e0f4a856abc712e64e4248e966ced37f.zip
CMake-de766bc7e0f4a856abc712e64e4248e966ced37f.tar.gz
CMake-de766bc7e0f4a856abc712e64e4248e966ced37f.tar.bz2
Xcode: Fix support for source tree symlink inside build tree
Since commit 61495cdaae (Fix Xcode project references to the source tree, 2009-09-22, v2.8.0~43) we force source file references to use relative paths from the source tree. If the source tree path is a symbolic link inside the build tree, the relative `../` sequence goes to the wrong place. The problem with debug breakpoints motivating that change does not seem to occur in modern Xcode versions, so update the logic to use a relative path only when it does not need to start in any `../` sequence.
Diffstat (limited to 'Tests/RunCMake/SymlinkTrees')
-rw-r--r--Tests/RunCMake/SymlinkTrees/RunCMakeTest.cmake6
1 files changed, 0 insertions, 6 deletions
diff --git a/Tests/RunCMake/SymlinkTrees/RunCMakeTest.cmake b/Tests/RunCMake/SymlinkTrees/RunCMakeTest.cmake
index 304e9de..3f3aafe 100644
--- a/Tests/RunCMake/SymlinkTrees/RunCMakeTest.cmake
+++ b/Tests/RunCMake/SymlinkTrees/RunCMakeTest.cmake
@@ -82,12 +82,6 @@ function (run_symlink_test case src bin src_from_bin bin_from_src)
message(STATUS "${case}-exe-build - SKIPPED")
return()
endif()
- if(case MATCHES "^(different|asymmetric)-src_in_bin$" AND RunCMake_GENERATOR STREQUAL "Xcode")
- # FIXME: The Xcode generator computes an incorrect relative path.
- message(STATUS "${case}-exe - SKIPPED")
- message(STATUS "${case}-exe-build - SKIPPED")
- return()
- endif()
unset(RunCMake_TEST_VARIANT_DESCRIPTION)
run_symlink_test_case("${case}-exe" -S "${src}" -B "${bin}")
if (RunCMake_GENERATOR MATCHES "Xcode")