Hello all,
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:
Code:
find_package(boost)
which my normal development machine finds in:
Code:
/usr/share/cmake-2.6/Modules/FindBoost.cmake
On the cluster I have a version of FindBoost.cmake at:
Code:
/home/username/cmake_modules
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.
-- Damien
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:
Code:
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake_modules/")
Which I have adjusted to:
Code:
set(CMAKE_MODULE_PATH "/home/username/find_cmake")
which is the local directory where I have placed the FindBoost.cmake files.
The cmake version is 2.8.0