Hi cmake-developers, I’m working on a patch to LLVM to support running our clang test-suite using ExternalProject. The complication here is that we want to configure the test-suite’s CMake build with the clang that is produced from the LLVM/Clang build.
In my patch I try adding a dependency on clang to the ${name}-configure target
using add_dependencies. The problem is that in the generated Ninja build file
the dependency on clang is an order-only dependency, not a file dependency.
Being an order-only dependency means the target won’t be re-executed when clang
changes, so we can’t re-run the test suite after a change to clang.
I’ve attached my WiP patches, what can I do to make it so that when USE_CLANG
is set the external project will have a file-dependency on clang?
Thanks,
-Chris
external-proj.diff
Description: Binary data
-- 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-developers
