[PATCH] D51561: [CMake] Add support for unittests that have input files

Zachary Turner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 5 14:39:40 PDT 2018


zturner updated this revision to Diff 164111.
zturner added a comment.

Made a custom target which is responsible for copying inputs, and set it as a dependency of the unittest executable target.  This should ensure that even if the input file changes, it makes it into the output directory.


https://reviews.llvm.org/D51561

Files:
  llvm/cmake/modules/AddLLVM.cmake
  llvm/include/llvm/Testing/Support/SupportHelpers.h
  llvm/lib/Testing/Support/CMakeLists.txt
  llvm/lib/Testing/Support/SupportHelpers.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51561.164111.patch
Type: text/x-patch
Size: 3585 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180905/0158ead3/attachment.bin>


More information about the llvm-commits mailing list