[libomptarget][DeviceRTL] Generalise and simplify cmakelists
authorJon Chesterfield <jonathanchesterfield@gmail.com>
Thu, 21 Oct 2021 15:14:28 +0000 (16:14 +0100)
committerJon Chesterfield <jonathanchesterfield@gmail.com>
Thu, 21 Oct 2021 15:14:29 +0000 (16:14 +0100)
commita602c2b51dccc756c12e7585c34710aeaef54e0b
tree0dac9b9b51c5cef0b7152cf323366326261623e1
parent3888de9507c78d3d77a4f565f30a3bf1b2fce690
[libomptarget][DeviceRTL] Generalise and simplify cmakelists

Step towards building the DeviceRTL for amdgpu.

Mostly replaces cuda-specific toolchain finding logic with the
generic logic currently found in the amdgpu deviceRTL cmake. Also
deletes dead code and changes the default to build on systems
without cuda installed, as the library doesn't use cuda and the
amdgpu-only systems generally won't have cuda installed.

Reviewed By: Meinersbur

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