<div dir="ltr"><div><div><div><div><div><div>CMAKE_PREFIX_PATH just adds a set of search paths.  To instead have it shift it's entire search infrastructure, you can use the CMAKE_FIND_ROOT_PATH CMake variable and a few associated with it, which will cause the entire set of search heuristics to be re-rooted in the specified path.  First run the bootstrap step:<br><br></div><span style="font-family:monospace,monospace">mkdir build<br></span></div><span style="font-family:monospace,monospace">cd build<br></span></div><span style="font-family:monospace,monospace">../bootstrap</span><br><br></div>Then use the bootstrapped CMake with the find root path settings:<br></div><span style="font-family:monospace,monospace"><br>./Bootstrap.mk/cmake \<br>  -DCMAKE_FIND_ROOT_PATH=/home/tools \<br>  -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY \<br>  -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \<br>  -DCMAKE_FIND_ROOT_PATH_MODE_PACKAGE=ONLY \<br>  -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=ONLY \<br>  -DCMAKE_USE_SYSTEM_LIBRARIES=ON \<br></span></div><span style="font-family:monospace,monospace">  -DCMAKE_INSTALL_PREFIX=/home/tools \<br></span><div><span style="font-family:monospace,monospace">  ..<br><br></span></div><div><span style="font-family:monospace,monospace">make -j8<br><br></span></div><div><span style="font-family:monospace,monospace">make install</span><br></div><div><br></div><div class="gmail_extra"><br clear="all"></div><div class="gmail_extra">- Chuck</div><br></div>