<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Alexander Neundorf said the following on 2/6/2012 3:56 PM:
    <blockquote cite="mid:201202062256.18576.a.neundorf-work@gmx.net"
      type="cite">
      <pre wrap="">
Would it be acceptable if cmake would rerun after every build ?
You could enforce that e.g. with a add_custom_command( POST_BUILD ... ) which 
could e.g. touch CMakeCache.txt or something.

Better ideas ?

</pre>
    </blockquote>
    We're working in a client/server environment in a fairly agile
    production environment; we need to have <i>all</i> executables
    correctly stamped with the revision they're sourced from.<br>
    <br>
    So I kind of need it run before each build.<br>
    <br>
    Further, one of my problems is that right now the variable gets
    cached in CMakeCache.txt, so I have to delete CMakeCache.txt or do<br>
    <br>
    &nbsp;&nbsp;&nbsp; cmake -DSubversion_FOUND=NO<br>
    <br>
    or similar.<br>
    <br>
    In the short term, I can just make it always rebuild the revision.h,
    but that has the downside of causing it to <i>always</i> rebuild
    the library that includes it, causing all binaries to relink, and so
    on, which is fairly time consuming (it's a very large project :)<br>
    <br>
    <br>
    <br>
  </body>
</html>