On Wed, 17 May 2017 10:36:59 -0500 Robert Dailey <rcdailey.li...@gmail.com> wrote:
> I have a custom target that must meet the following requirements: > > * It must always run, regardless of what subset of other targets are > being built > * It must always be the very last thing run. In parallelized builds, > it must wait until all other targets are done building before > starting, so that it is the very last target run, and should not run > in parallel with others. > > Is this possible? I'm willing to use hackery if needed... > > Running CMake 3.8.0. Thanks! One way would be to create a super-project-like CMakeLists.txt which will add your current project via ExternalProject_Add() . Then you add your always-build-last-target to this super-CMakeLists.txt as depending on the target created by this external-project in this super-CMakeLists.txt . regards, -- Patrick. -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake