Fix build of nvptx-arch with CLANG_LINK_CLANG_DYLIB
authorJonas Hahnfeld <hahnjo@hahnjo.de>
Thu, 29 Dec 2022 08:44:19 +0000 (09:44 +0100)
committerJonas Hahnfeld <hahnjo@hahnjo.de>
Thu, 29 Dec 2022 08:48:05 +0000 (09:48 +0100)
commitf3c9342a3d56e1782e3b6db081401af334648492
tree7c5bedf9213a59b6aa29bc4ced69ac69bb8ffc30
parentbd9c0f082b20d96ced1e5f5ddc1506afffc0f8d3
Fix build of nvptx-arch with CLANG_LINK_CLANG_DYLIB

The function clang_target_link_libraries must only be used with real
Clang libraries; with CLANG_LINK_CLANG_DYLIB, it will instead link in
clang-cpp. We must use the standard CMake target_link_libraries for
the CUDA library.
clang/tools/nvptx-arch/CMakeLists.txt