How can I check if a CMake target is up-to-date, from the command-line, without actually building it? A target is "up-to-date" if cmake --build <BUILD_DIR> --target <TARGETNAME>
would not actually execute any build steps.
In my case, the underlying build system used by CMake is make
, although a generic solution would be better.