We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2a78b3 commit 8dbc647Copy full SHA for 8dbc647
flang-rt/cmake/modules/AddFlangRTOffload.cmake
@@ -10,9 +10,10 @@ macro(enable_cuda_compilation name files)
10
if (FLANG_RT_EXPERIMENTAL_OFFLOAD_SUPPORT STREQUAL "CUDA")
11
enable_language(CUDA)
12
13
- # TODO: figure out how to make target property CUDA_SEPARABLE_COMPILATION
14
- # work, and avoid setting CMAKE_CUDA_SEPARABLE_COMPILATION.
15
- set(CMAKE_CUDA_SEPARABLE_COMPILATION ON)
+ set_target_properties(${name}
+ PROPERTIES
+ CUDA_SEPARABLE_COMPILATION ON
16
+ )
17
18
# Treat all supported sources as CUDA files.
19
set_source_files_properties(${files} PROPERTIES LANGUAGE CUDA)
0 commit comments