CMAKE_FIND_PACKAGE_RESOLVE_SYMLINKS

From Get docs
Cmake/docs/3.21/variable/cmake find package resolve symlinks


CMAKE_FIND_PACKAGE_RESOLVE_SYMLINKS

New in version 3.14.


Set to TRUE to tell find_package() calls to resolve symbolic links in the value of <PackageName>_DIR.

This is helpful in use cases where the package search path points at a proxy directory in which symlinks to the real package locations appear. This is not enabled by default because there are also common use cases in which the symlinks should be preserved.

© 2000–2021 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.21/variable/CMAKE_FIND_PACKAGE_RESOLVE_SYMLINKS.html