[CMake] Fwd: Re: Question about CMAKE_MODULE_PATH
Workbench@gmx.at
workbench at gmx.at
Mon Feb 18 11:04:51 EST 2019
-------- Forwarded Message --------
Subject: Re: [CMake] Question about CMAKE_MODULE_PATH
Date: Mon, 18 Feb 2019 16:58:26 +0100
From: Workbench at gmx.at <workbench at gmx.at>
To: Kyle Edwards <kyle.edwards at kitware.com>
here is my code:
set(MODULE_PATH "compile/tools/cmake/modules")
LIST(APPEND CMAKE_MODULE_PATH ${MODULE_PATH})
now i try to include with
INCLUDE(basic_tests)
and i get an error that the file can't be found when typing cmake ../
from within my build path.
On 18.02.19 16:54, Kyle Edwards wrote:
> On Mon, 2019-02-18 at 16:50 +0100, Workbench at gmx.at wrote:
>> Doesn't the content of CMAKE_MODULE_PATH should also include the path
>> to
>> the default modules ??
> The default modules are automatically checked by CMake, independently
> of the contents of CMAKE_MODULE_PATH. They should not normally be
> present in CMAKE_MODULE_PATH.
>
>>> i try to load custom modules. i use
>>>
>>>
>>> list(append CMAKE_MODULE_PATH "/mypathtomdoules")
> The "append" argument should be uppercase:
>
> list(APPEND CMAKE_MODULE_PATH "/mypathtomodules")
>
> Did you receive any warnings about an invalid argument to list()?
>
> Kyle
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20190218/14c72bbc/attachment.html>
More information about the CMake
mailing list