<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hello,<div class=""><br class=""></div><div class="">Suppose I have a cmake_minimum_required(VERSION 2.8.12) project I would like to contribute to.</div><div class=""><br class=""></div><div class="">So when I am testing code for a v2.8.12 project, but my installed CMake version is say 3.10, if I (accidentally, or through ignorance) write code that would only work in CMake 3.x but <b class="">not</b> in 2.8.12, will the build fail or should I make sure to install 2.8.12 and test using that?</div><div class=""><br class=""></div><div class="">For example, my understanding is that for things like policies, I can do</div><div class=""><br class=""></div><div class="">if (POLICY CMP<NNNN>)</div><div class=""> <span class="n">cmake_policy</span><span class="p">(</span><span class="n">SET</span> <span class="n">CMP</span><span class="o"><</span><span class="n">NNNN</span><span class="o">></span> <span class="n">NEW</span><span class="p">)</span></div><div class="">endif()</div><div class=""><br class=""></div><div class="">and this will mean that an older version of CMake running this code that does not know about policy NNNN will still work. But if I ended up using an entirely new command that did not exist at the time of 2.8.12, but does exist in 3.10 of my installed CMake, should the build fail or succeed?</div><div class=""><br class=""></div><div class="">Thanks for any guidance, I’m sorry if this question doesn’t make any sense…</div><div class=""><br class=""></div><div class="">-Stephen</div><div class=""><br class=""></div></body></html>