[Libomptarget] Add header files as a dependency to CMake target
authorJoseph Huber <jhuber6@vols.utk.edu>
Tue, 8 Feb 2022 16:35:57 +0000 (11:35 -0500)
committerJoseph Huber <jhuber6@vols.utk.edu>
Tue, 8 Feb 2022 17:09:59 +0000 (12:09 -0500)
commit99d72ebddf97879c175552278601c824410884e8
tree3b325d31eb85ce8f761d4f2992e0daa7bef96f26
parent2ecda9ec9cc89b87ce2e56452229c9444beabf21
[Libomptarget] Add header files as a dependency to CMake target

This patch manually adds the runtime include files to the list of
dependencies when we build the bitcode runtime library. Previously if
only the header was changed we would not recompile the source files.
The solution used here isn't optimal because every source file not has a
dependency on each header file regardless of if it was actually used by
that file.

Reviewed By: tianshilei1992

Differential Revision: https://reviews.llvm.org/D119254
openmp/libomptarget/DeviceRTL/CMakeLists.txt