<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
<div class="moz-forward-container">Forwarding this for Ben.<br>
<br>
Would it be reasonable to have a way to not add the
CMAKE_INSTALL_PREFIX to the CMAKE_SYSTEM_PREFIX_PATH?<br>
<br>
The install prefix is not cleared before the CI build on
build.kde.org because the dependency graph is quite large
(everything depends on Qt, most things depend on kdelibs, some
things depend on kdepimlibs etc). <br>
<br>
Successful builds are uploaded to a master server and build nodes
will re-download that if they have no version of the dependency.
That re-download can be huge and take significant time, so it is
avoided by also not clearing the install prefix on each of the
build nodes.<br>
<br>
Is the only solution to this as Ben describes with
passing NO_CMAKE_SYSTEM_PATH to CMake?<br>
<br>
Thanks,<br>
<br>
Steve.<br>
<br>
<br>
-------- Original Message --------
<table class="moz-email-headers-table" border="0" cellpadding="0"
cellspacing="0">
<tbody>
<tr>
<th nowrap="nowrap" valign="BASELINE" align="RIGHT">Subject:
</th>
<td>CMake System Prefix Path</td>
</tr>
<tr>
<th nowrap="nowrap" valign="BASELINE" align="RIGHT">Date: </th>
<td>Tue, 22 Oct 2013 17:03:26 +1300</td>
</tr>
<tr>
<th nowrap="nowrap" valign="BASELINE" align="RIGHT">From: </th>
<td>Ben Cooksley <a class="moz-txt-link-rfc2396E" href="mailto:bcooksley@kde.org"><bcooksley@kde.org></a></td>
</tr>
<tr>
<th nowrap="nowrap" valign="BASELINE" align="RIGHT">To: </th>
<td>Stephen Kelly <a class="moz-txt-link-rfc2396E" href="mailto:steveire@gmail.com"><steveire@gmail.com></a></td>
</tr>
</tbody>
</table>
<br>
<br>
<div dir="ltr">Hi Stephen,
<div><br>
</div>
<div>It has between pointed out to me on IRC that CMake
automatically adds the install prefix path
(CMAKE_INSTALL_PREFIX) to CMAKE_SYSTEM_PREFIX_PATH - which is
included in the paths searched.</div>
<div><br>
</div>
<div style="">This is rather unfortunate as it interferes in our
CI system - we rely on CMake searching only normal system
paths (like /usr) and the paths we specify (via
CMAKE_PREFIX_PATH) in order to ensure our builds are clean.
This means kdelibs[frameworks] builds have been succeeding
when they should be failing.</div>
<div style=""><br>
</div>
<div style="">Is there any way around this issue other than
ensuring /usr and /usr/local are included in
CMAKE_PREFIX_PATH, and passing NO_CMAKE_SYSTEM_PATH to CMake?</div>
<div style=""><br>
</div>
<div style="">
(As an aside, it seems that something in the stack Grantlee
uses is definitely modifying CMAKE_SYSTEM_PREFIX_PATH as it
contains /srv/jenkins/install/linux/x86_64/g++/common/shared -
which is not the install prefix.</div>
<div style=""><br>
</div>
<div style="">Thanks,</div>
<div style="">Ben</div>
</div>
<br>
</div>
<br>
</body>
</html>