I have a C++ file using __DATE__
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.
Can CMake always rebuild that specific file?
Apparently it's possible with makefile : How do you force a makefile to rebuild a target
Edit: Duplicate of CMake - always build specific file