You may also need to use FORCE:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
if(NOT CMAKE_BUILD_TYPE)<br>
  set(CMAKE_BUILD_TYPE &quot;Release&quot; CACHE STRING<br>
      &quot;Choose the type of build, options are: Debug Release<br>
RelWithDebInfo MinSizeRel.&quot;<br>
      FORCE)<br>
endif(NOT CMAKE_BUILD_TYPE)<br>
<br>
James<br>
_______________________________________________<br>
</blockquote><div><br>Great, that did it (it did require using FORCE). I don&#39;t understand why &lt;docstring&gt; is required? Why can you not leave that string alone and simply change the value of &lt;variable&gt;?<br>
<br clear="all">Thanks,<br><br>David<br> 
<br></div></div>