I am attempting to compile some code on a cluster where I do not have root access (and is missing many of the libraries I want), and hence have had to create local builds of the boost and opencv libraries (i.e. in /home/username/usr/local).
In particular, my cmake depends on:
which my normal development machine finds in:
On the cluster I have a version of FindBoost.cmake at:
How can I tell CMake to look for FindBoost.cmake in that directory, since neither the cmake file, nor the boost install is in the standard location?
I've modified the FindBoost.cmake file to make it search in the locally installed boost libraries.
EDIT: Now I'm really scratching my head. According to http://www.itk.org/Wiki/CMake:How_To_Find_Libraries
if I place the following line in my CMakeLists.txt file, it should find any modules in that path:
Which I have adjusted to:
which is the local directory where I have placed the FindBoost.cmake files.
The cmake version is 2.8.0