summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/find_package/FindRootPathAndPrefixPathAreEqual
Commit message (Collapse)AuthorAgeFilesLines
* find_package: Don't reroot prefix that is equal to a root pathAlexandru Croitor2021-10-201-0/+0
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