mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-23 16:28:52 -05:00
Tests/Cuda: Add missing separable compilation property
This resulted in `mixed_kernel()` returning an "invalid device function" at runtime for `file1_func()`. Suggested-by: Robert Maynard
This commit is contained in:
@@ -32,6 +32,8 @@ add_library(CudaComplexSharedLib SHARED dynamic.cu)
|
|||||||
target_link_libraries(CudaComplexSharedLib PUBLIC CudaComplexCppBase)
|
target_link_libraries(CudaComplexSharedLib PUBLIC CudaComplexCppBase)
|
||||||
|
|
||||||
add_library(CudaComplexMixedLib SHARED mixed.cpp mixed.cu)
|
add_library(CudaComplexMixedLib SHARED mixed.cpp mixed.cu)
|
||||||
|
set_target_properties(CudaComplexMixedLib
|
||||||
|
PROPERTIES CUDA_SEPARABLE_COMPILATION ON)
|
||||||
target_link_libraries(CudaComplexMixedLib
|
target_link_libraries(CudaComplexMixedLib
|
||||||
PUBLIC CudaComplexSharedLib
|
PUBLIC CudaComplexSharedLib
|
||||||
PRIVATE CudaComplexSeperableLib)
|
PRIVATE CudaComplexSeperableLib)
|
||||||
|
|||||||
Reference in New Issue
Block a user