<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p><br>
</p>
<div class="moz-forward-container"><br>
<br>
-------- Forwarded Message --------
<table class="moz-email-headers-table" cellspacing="0"
cellpadding="0" border="0">
<tbody>
<tr>
<th align="RIGHT" valign="BASELINE" nowrap="nowrap">Subject:
</th>
<td>Re: [CMake] Question about CMAKE_MODULE_PATH</td>
</tr>
<tr>
<th align="RIGHT" valign="BASELINE" nowrap="nowrap">Date: </th>
<td>Mon, 18 Feb 2019 16:58:26 +0100</td>
</tr>
<tr>
<th align="RIGHT" valign="BASELINE" nowrap="nowrap">From: </th>
<td><a class="moz-txt-link-abbreviated" href="mailto:Workbench@gmx.at">Workbench@gmx.at</a> <a class="moz-txt-link-rfc2396E" href="mailto:workbench@gmx.at"><workbench@gmx.at></a></td>
</tr>
<tr>
<th align="RIGHT" valign="BASELINE" nowrap="nowrap">To: </th>
<td>Kyle Edwards <a class="moz-txt-link-rfc2396E" href="mailto:kyle.edwards@kitware.com"><kyle.edwards@kitware.com></a></td>
</tr>
</tbody>
</table>
<br>
<br>
here is my code:<br>
<br>
<br>
set(MODULE_PATH "compile/tools/cmake/modules")<br>
<br>
LIST(APPEND CMAKE_MODULE_PATH ${MODULE_PATH})<br>
<br>
now i try to include with<br>
<br>
INCLUDE(basic_tests)<br>
<br>
and i get an error that the file can't be found when typing cmake
../ from within my build path.<br>
<br>
<br>
<br>
On 18.02.19 16:54, Kyle Edwards wrote:<br>
<blockquote type="cite">On Mon, 2019-02-18 at 16:50 +0100,
<a class="moz-txt-link-abbreviated" href="mailto:Workbench@gmx.at">Workbench@gmx.at</a> wrote:<br>
<blockquote type="cite">Doesn't the content of CMAKE_MODULE_PATH
should also include the path<br>
to<br>
the default modules ??<br>
</blockquote>
The default modules are automatically checked by CMake,
independently<br>
of the contents of CMAKE_MODULE_PATH. They should not normally
be<br>
present in CMAKE_MODULE_PATH.<br>
<br>
<blockquote type="cite">
<blockquote type="cite">i try to load custom modules. i use<br>
<br>
<br>
list(append CMAKE_MODULE_PATH "/mypathtomdoules")<br>
</blockquote>
</blockquote>
The "append" argument should be uppercase:<br>
<br>
list(APPEND CMAKE_MODULE_PATH "/mypathtomodules")<br>
<br>
Did you receive any warnings about an invalid argument to
list()?<br>
<br>
Kyle<br>
<br>
</blockquote>
</div>
</body>
</html>