The CMake variable CMAKE_FIND_ROOT_PATH specifies one or moredirectories to be prepended to all other search directories. Thiseffectively "re-roots" the entire search under given locations. Bydefault it is empty. It is especially useful when cross-compiling topoint to the root directory of the target environment and CMake willsearch there too. By default at first the directories listed inCMAKE_FIND_ROOT_PATH and then the non-rooted directories will besearched. The default behavior can be adjusted by setting|CMAKE_FIND_ROOT_PATH_MODE_XXX|. This behavior can be manuallyoverridden on a per-call basis. By using CMAKE_FIND_ROOT_PATH_BOTHthe search order will be as described above. IfNO_CMAKE_FIND_ROOT_PATH is used then CMAKE_FIND_ROOT_PATH will not beused. If ONLY_CMAKE_FIND_ROOT_PATH is used then only the re-rooteddirectories will be searched.