diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2021-10-20 11:26:25 (GMT) |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2021-10-20 16:50:41 (GMT) |
commit | 91ec6eee58cdde3ad7994b5c7f96994427e65b68 (patch) | |
tree | 54da9829389349ecbf36a9fbb29e986334bce861 /Tests/RunCMake/find_package/FindRootPathAndPrefixPathAreEqual | |
parent | 9be4c7f0c426c1445e48165f13ae2d31fa1f2940 (diff) | |
download | CMake-91ec6eee58cdde3ad7994b5c7f96994427e65b68.zip CMake-91ec6eee58cdde3ad7994b5c7f96994427e65b68.tar.gz CMake-91ec6eee58cdde3ad7994b5c7f96994427e65b68.tar.bz2 |
find_package: Don't reroot prefix that is equal to a root path
When both CMAKE_FIND_ROOT_PATH and CMAKE_PREFIX_PATH are set to
/opt/my_device_sysroot, cmFindCommon::RerootPaths would only look
for packages in /opt/my_device_sysroot/opt/my_device_sysroot
but would not try to look in /opt/my_device_sysroot.
Make sure to not reroot the prefix path in such a case.
Fixes: #21937
Diffstat (limited to 'Tests/RunCMake/find_package/FindRootPathAndPrefixPathAreEqual')
-rw-r--r-- | Tests/RunCMake/find_package/FindRootPathAndPrefixPathAreEqual/lib/cmake/Foo/FooConfig.cmake | 0 |
1 files changed, 0 insertions, 0 deletions
diff --git a/Tests/RunCMake/find_package/FindRootPathAndPrefixPathAreEqual/lib/cmake/Foo/FooConfig.cmake b/Tests/RunCMake/find_package/FindRootPathAndPrefixPathAreEqual/lib/cmake/Foo/FooConfig.cmake new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/Tests/RunCMake/find_package/FindRootPathAndPrefixPathAreEqual/lib/cmake/Foo/FooConfig.cmake |