Am 15.04.2011 23:48, schrieb Michael Hertling: > On 04/15/2011 11:22 PM, Oliver Buchtala wrote: >> Hi, >> >> I observe that a custom command attached to a custom target as >> POST-BUILD is launched on every build. >> Is that true? or is it a misconfiguration on my side? >> >> Bye, >> Oliver > A custom target is always out of date, i.e. it is always rebuilt when > it is visited - as a prerequisite of another target or due to the ALL > clause, e.g., and since the target has been rebuilt, each associated > POST_BUILD custom command is rerun. Thus, the behaviour you observed > is correct, expected and reasonable, IMO. > > Regards, > > Michael > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Follow this link to subscribe/unsubscribe: > http://www.cmake.org/mailman/listinfo/cmake Yep. That's reasonable.
Do have a suggestion how to get around a rerun of the post-build? Or how would you do a post-build after custom-target without being run when custom-target actually did nothing, i.e., custom target depends on custom command that did nothing? Bye, Oliver _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake