<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<div style="direction:ltr; font-family:Tahoma; color:#000000; font-size:10pt">
<div><br>
</div>
When I am using GenerateExportHeader from a sub-directory the export header file is not re-generated when the file is deleted.  I have discovered that the configure_file command does not regenerate the target file if the target file is deleted and the command
 is specified from a sub-directory.  Attached are three cases exhibiting what I have found.  In all cases the following commands exhibit the current behaviour.
<div><br>
</div>
<div>#unzip the files and from inside the unzipped content</div>
<div>cd build</div>
<div>cmake ..</div>
<div>make</div>
<div>make clean</div>
<div>make</div>
<div><br>
</div>
<div>When building test 1 all commands execute successfully, this test does not use configure_file in a sub-directory.  When building tests 2 and 3 the second 'make' command fails due to a missing header file, both of these tests use configure_file in a sub-directory.</div>
<div><br>
</div>
<div>I have tested this on GNU/Linux and OS X using CMake version 3.5.X and 3.5.2 respectively.</div>
<div><br>
</div>
<div>So my question is: Is this the expected behaviour?</div>
</div>
</div>
</body>
</html>