title: Can CMake always force the compilation/build of a specific file?
body: <p>I have a C++ file using <code>__DATE__</code> to display the build date of my app. But if this file is not modified, it will not be rebuilt and the date will not be updated.</p>
  
  <p>Can CMake always rebuild that specific file?</p>
  
  <p>Apparently it's possible with makefile :
  <a href="https://stackoverflow.com/questions/816370/how-do-you-force-a-makefile-to-rebuild-a-target">How do you force a makefile to rebuild a target</a></p>
  
  <p><strong>Edit:</strong>
  Duplicate of <a href="https://stackoverflow.com/questions/53432251/cmake-always-build-specific-file">CMake - always build specific file</a></p>