<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Thank you, that did the trick. Now my other question is there a
function in cmake that does abort the build/makefile generation
process ? for example if i find out the system is not 64bit - is
there something like quit() ?<br>
</p>
<div class="moz-cite-prefix">On 18.02.19 17:04, <a class="moz-txt-link-abbreviated" href="mailto:Workbench@gmx.at">Workbench@gmx.at</a>
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:d6f248cb-8710-6ace-53ac-81bfc6eccefd@gmx.at">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<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" moz-do-not-send="true">Workbench@gmx.at</a>
<a class="moz-txt-link-rfc2396E"
href="mailto:workbench@gmx.at" moz-do-not-send="true"><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"
moz-do-not-send="true"><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" moz-do-not-send="true">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>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
</blockquote>
</body>
</html>