summaryrefslogtreecommitdiffstats
path: root/Tests/CudaOnly
diff options
context:
space:
mode:
authorRobert Maynard <robert.maynard@kitware.com>2019-08-01 00:11:08 (GMT)
committerRobert Maynard <robert.maynard@kitware.com>2019-08-06 13:55:40 (GMT)
commit8f1d22c2d9922e55565c3cd51b91bb3a6c33ffdc (patch)
treeb4e09ce9bc35d451690447ef44e705057492d304 /Tests/CudaOnly
parent8ce189720ee8daafed4848ee9eb970f9e0546578 (diff)
downloadCMake-8f1d22c2d9922e55565c3cd51b91bb3a6c33ffdc.zip
CMake-8f1d22c2d9922e55565c3cd51b91bb3a6c33ffdc.tar.gz
CMake-8f1d22c2d9922e55565c3cd51b91bb3a6c33ffdc.tar.bz2
CUDA: Support CMAKE_CUDA_RESOLVE_DEVICE_SYMBOLS global variable
Diffstat (limited to 'Tests/CudaOnly')
-rw-r--r--Tests/CudaOnly/DontResolveDeviceSymbols/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/CudaOnly/DontResolveDeviceSymbols/CMakeLists.txt b/Tests/CudaOnly/DontResolveDeviceSymbols/CMakeLists.txt
index 6190089..6e3697f 100644
--- a/Tests/CudaOnly/DontResolveDeviceSymbols/CMakeLists.txt
+++ b/Tests/CudaOnly/DontResolveDeviceSymbols/CMakeLists.txt
@@ -27,12 +27,12 @@ endif()
string(APPEND CMAKE_CUDA_FLAGS " -gencode arch=compute_30,code=[compute_30] -gencode arch=compute_50,code=\\\"compute_50\\\"")
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CUDA_STANDARD 11)
+set(CMAKE_CUDA_RESOLVE_DEVICE_SYMBOLS OFF)
add_library(CUDANoDeviceResolve SHARED file1.cu)
set_target_properties(CUDANoDeviceResolve
PROPERTIES
CUDA_SEPARABLE_COMPILATION ON
- CUDA_RESOLVE_DEVICE_SYMBOLS OFF
POSITION_INDEPENDENT_CODE ON)
if(MSVC)
target_link_options(CUDANoDeviceResolve PRIVATE "/FORCE:UNRESOLVED")