[CMake] Custom CMake module in project

Philip Lowman philip at yhbt.com
Sat Jan 31 00:16:42 EST 2009


On Fri, Jan 30, 2009 at 11:56 PM, Thomas Harning <harningt at gmail.com> wrote:

> I have a CMake module that is not in the module repository and cannot quite
> figure out the right way to include it in my project.
>
> I've put FindMHASH.cmake in the root path of the project, as well as put it
> under 'Modules' in there.  I've performed:
>
> set(CMAKE_MODULES_PATH Modules)


typo and/or you're assuming that setting the variable works with a relative
path, which it does not.
Try the following from the parent directory of Modules:

set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/Modules)

-- 
Philip Lowman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090131/3fa1d618/attachment.htm>


More information about the CMake mailing list