CMAKE_FIND_ROOT_PATH

From Get docs
Cmake/docs/3.21/variable/cmake find root path


CMAKE_FIND_ROOT_PATH

Semicolon-separated list of root paths to search on the filesystem.

This variable is most useful when cross-compiling. CMake uses the paths in this list as alternative roots to find filesystem items with find_package(), find_library() etc.

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