title: CMake: Running shell script after expanding variables in it
body: <p>Following is the issue, I am encountering </p>
  
  <ol>
  <li>I have a shell script named my_script.sh.IN. I use configure_file for expanding script and thus creating my_script.sh.</li>
  <li>I then need to run my_script.sh. For this purpose, I am using execute_process().</li>
  <li>I need all of this at CMake time.</li>
  </ol>
  
  <p>Issue: Problem is that when I run "cmake", system complains that he could not find "my_script.sh". I think that execute_process dependencies seem to be calculated before configure_file() function runs.</p>
  
  <p>When I run "cmake" command second time, everything goes fine. Does anybody knows that how can I able to execute configure_file before execute_process?</p>