mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-21 14:40:26 -06: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)
|
||||
|
||||
add_library(CudaComplexMixedLib SHARED mixed.cpp mixed.cu)
|
||||
set_target_properties(CudaComplexMixedLib
|
||||
PROPERTIES CUDA_SEPARABLE_COMPILATION ON)
|
||||
target_link_libraries(CudaComplexMixedLib
|
||||
PUBLIC CudaComplexSharedLib
|
||||
PRIVATE CudaComplexSeperableLib)
|
||||
|
||||
Reference in New Issue
Block a user