On Jan 31, 2009, at 12:16 AM, Philip Lowman wrote:

On Fri, Jan 30, 2009 at 11:56 PM, Thomas Harning <[email protected]> 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)
Oops, my bad. That fix you suggested resolved the problem.
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to