[CMake] Custom CMake module in project
Thomas Harning
harningt at gmail.com
Sat Jan 31 00:39:36 EST 2009
On Jan 31, 2009, at 12:16 AM, Philip Lowman wrote:
> 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)
Oops, my bad. That fix you suggested resolved the problem.
More information about the CMake
mailing list