I encountered this the other day. Is this a bug?<br><br><br>project(Foo)<br>cmake_minimum_required(VERSION 2.6)<br>set(WTFO ON)<br>message("WTFO is ${WTFO}")<br>option(WTFO "wtfo" OFF)<br>message("WTFO is ${WTFO}")<br>
<br>Here's the output...<br>
<br>(first run)<br><span style="color: rgb(255, 0, 0);">WTFO is ON</span>
<p style="margin: 0px; text-indent: 0px;"><span style="color: rgb(255, 0, 0);">WTFO is OFF</span></p>(second run)<br><span style="color: rgb(255, 0, 0);">WTFO is ON</span>
<p style="margin: 0px; text-indent: 0px;"><span style="color: rgb(255, 0, 0);">WTFO is ON</span></p><br clear="all"><br>-- <br>Philip Lowman<br>