<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Thanks, that seems to work.<br>
<br>
Is the idiom <br>
<blockquote><tt>if(POLICY CMP<NNNN>)</tt><tt><br>
</tt><tt> cmake_policy(PUSH)</tt><tt><br>
</tt><tt> cmake_policy(SET </tt><tt><tt>CMP<NNNN></tt>
OLD)</tt><tt><br>
</tt><tt> cmake_policy(POP)</tt><tt><br>
</tt><tt>endif()</tt><tt><br>
</tt></blockquote>
one that you also need to use with newer CMakes? Or does it then
suffice to do<tt><br>
</tt>
<blockquote><tt>cmake_policy(SET </tt><tt><tt>CMP<NNNN></tt>
OLD)</tt><br>
</blockquote>
<tt>
</tt>Best regards,<br>
Marcel Loose.<br>
<br>
<br>
Op 13-12-12 14:00, David Cole schreef:<br>
</div>
<blockquote
cite="mid:CAAdwe9WE+i1t_ShPzVmLRSAKZy-dy77aRbL30P+e8aFc+WL-9A@mail.gmail.com"
type="cite">You could use if(POLICY (if 2.6.2 supports that... I
think it does, but it was very long ago......) to avoid the call
on older CMakes.
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Thu, Dec 13, 2012 at 6:31 AM, Marcel
Loose <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:loose@astron.nl" target="_blank">loose@astron.nl</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
I'm trying to figure out how to use the CMAKE_POLICY()
command. I want to get rid of the warning on CMP0017. I've
strategically placed "cmake_policy(PUSH)", "cmake_policy(SET
CMP0017 OLD)", and "cmake_policy(POP)" which solves the
problem when configuring with CMake 2.8.9.<br>
<br>
However, our project also needs to be compatible with CMake
2.6.2. The problem is that this older CMake now bails out
with an error message:<br>
<br>
CMake Error at CMake/FindLAPACK.cmake:44 (cmake_policy):<br>
Policy "CMP0017" is not known to this version of CMake.<br>
<br>
This sounds like a catch-22. I've fixed the warning for the
new CMake, but get an error in return for the old CMake.
What am I doing wrong??<br>
<br>
Best regards,<br>
Marcel Loose.<br>
<br>
<br>
--<br>
<br>
Powered by <a moz-do-not-send="true"
href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a
moz-do-not-send="true"
href="http://www.kitware.com/opensource/opensource.html"
target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a
moz-do-not-send="true"
href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a moz-do-not-send="true"
href="http://www.cmake.org/mailman/listinfo/cmake"
target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</body>
</html>