================
@@ -8,6 +8,12 @@
 
 macro(enable_cuda_compilation name files)
   if (FLANG_RT_EXPERIMENTAL_OFFLOAD_SUPPORT STREQUAL "CUDA")
+    if (NOT FLANG_RT_ENABLE_STATIC)
+      message(FATAL_ERROR
+        "FLANG_RT_ENABLE_STATIC is required for CUDA build of Flang-RT"
+        )
+    endif()
+
     enable_language(CUDA)
 
     set_target_properties(${name}
----------------
Meinersbur wrote:

Should be fixed in 0450959120e5ebae63b1e26b8232e7193c403099. Noticed myself 
when testing all the build configuratons. Unfortuntelty ALIAS targets do not 
solve everything, they cannot be used to modify a target.

https://github.com/llvm/llvm-project/pull/121782
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to