There is a one-time operation I need CMake to perform the very first time a user generates. This operation involves copying several files from a remote server (third party libraries) and placing them in the binary dir.<div>
<br></div><div>Right now I&#39;m attempting to do this via a cache variable:</div><div><br></div><div>set( COPY_DONE false CACHE BOOL &quot;This is my documentation&quot; )</div><div>if( NOT COPY_DONE )</div><div>    ....... do work ........</div>
<div>    set( COPY_DONE true )</div><div>endif()</div><div><br></div><div>I do not make this an INTERNAL cache variable because at any time the user should be able to set COPY_DONE to false manually and it should recopy everything, and then set it back to &#39;true&#39;.</div>
<div><br></div><div>The code above does not work because I&#39;m not using set( COPY_DONE true ............ FORCE ). But I have to resupply the docstring if I do it this way.</div><div><br></div><div>Am I going about this the wrong way? Can anyone recommend a different approach? If not, how can I do this without having to duplicate the doc string?<br clear="all">
<div><br></div><div>---------</div>Robert Dailey<br>
</div>