[OpenMP] Fixed the issue that CMake variables for OpenMP were not passed through...
authorShilei Tian <tianshilei1992@gmail.com>
Sun, 20 Dec 2020 23:39:19 +0000 (18:39 -0500)
committerShilei Tian <tianshilei1992@gmail.com>
Sun, 20 Dec 2020 23:40:12 +0000 (18:40 -0500)
commit36b0dd8f678fc446f8088963a70d701507ced8fc
treeaf570eb116a174f08e0fbfbe65b8fb406d7a5b82
parent01d1de81963d91773c92b29e2d08605293c59750
[OpenMP] Fixed the issue that CMake variables for OpenMP were not passed through when building OpenMP with LLVM_ENABLE_RUNTIMES

Currently when building OpenMP along with LLVM, CMake variables for OpenMP (prefix with `LIBOMP` and `LIBOMPTARGET`) will not be passed through because by default it uses the prefix of the runtime name, aka `OPENMP` in this case. This patch fixed this issue.

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D93603
llvm/runtimes/CMakeLists.txt