diff options
author | Robert Maynard <rmaynard@nvidia.com> | 2023-06-29 19:24:49 (GMT) |
---|---|---|
committer | Robert Maynard <rmaynard@nvidia.com> | 2023-07-20 21:02:58 (GMT) |
commit | 6b5f2dbbfe453f9bafe46ee420e657735ff16fb0 (patch) | |
tree | a27c2718ea6c2ddd76e75b35eb035cfc48a0b358 /Tests/RunCMake/CMP0152/CMP0152-WARN-stderr.txt | |
parent | b0054dd65c1d69a437abe85d27e704326884a9c2 (diff) | |
download | CMake-6b5f2dbbfe453f9bafe46ee420e657735ff16fb0.zip CMake-6b5f2dbbfe453f9bafe46ee420e657735ff16fb0.tar.gz CMake-6b5f2dbbfe453f9bafe46ee420e657735ff16fb0.tar.bz2 |
file(REAL_PATH): resolve symlinks before '..' components
Previously REAL_PATH would collapse paths before resolving any symlinks
so if `..` crossed a symlink the output from `REAL_PATH` would be wrong.
It looked like REAL_PATH did this by mistake since it was a side-effect
of ensuring we had an absolute path before resolving symlinks.
Diffstat (limited to 'Tests/RunCMake/CMP0152/CMP0152-WARN-stderr.txt')
-rw-r--r-- | Tests/RunCMake/CMP0152/CMP0152-WARN-stderr.txt | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Tests/RunCMake/CMP0152/CMP0152-WARN-stderr.txt b/Tests/RunCMake/CMP0152/CMP0152-WARN-stderr.txt new file mode 100644 index 0000000..8d63168 --- /dev/null +++ b/Tests/RunCMake/CMP0152/CMP0152-WARN-stderr.txt @@ -0,0 +1,27 @@ +^CMake Warning \(dev\) at CMP0152-Common\.cmake:[0-9]+ \(file\): + Policy CMP0152 is not set: file\(REAL_PATH\) resolves symlinks before + collapsing \.\./ components\. Run "cmake --help-policy CMP0152" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + From input path: + + [^ +]*/Tests/RunCMake/CMP0152/CMP0152-WARN-build/dir/bin/\.\./ + + the policy OLD behavior produces path: + + [^ +]*/Tests/RunCMake/CMP0152/CMP0152-WARN-build/dir + + but the policy NEW behavior produces path: + + [^ +]*/Tests/RunCMake/CMP0152/CMP0152-WARN-build/dir/nested + + Since the policy is not set, CMake is using the OLD behavior for + compatibility. +Call Stack \(most recent call first\): + CMP0152-WARN\.cmake:[0-9]+ \(include\) + CMakeLists.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\.$ |