summaryrefslogtreecommitdiffstats
path: root/Modules/FindCUDA
diff options
context:
space:
mode:
authorRobert Maynard <robert.maynard@kitware.com>2017-08-14 15:43:32 (GMT)
committerRobert Maynard <robert.maynard@kitware.com>2017-08-15 16:58:52 (GMT)
commitc1f4f13dbfa7caf6bbf4d8b70a7f09f786c7eed6 (patch)
treed0377e4314c7f1511a2a1aed46eb5d646493f5d1 /Modules/FindCUDA
parentce2750817b768cee6ae119747cdf806401f09332 (diff)
downloadCMake-c1f4f13dbfa7caf6bbf4d8b70a7f09f786c7eed6.zip
CMake-c1f4f13dbfa7caf6bbf4d8b70a7f09f786c7eed6.tar.gz
CMake-c1f4f13dbfa7caf6bbf4d8b70a7f09f786c7eed6.tar.bz2
FindCUDA: Use long brackets to handle spaces in CUDA_NVCC_COMPILE_DEFINITIONS
Fixes #16510. Quoting of compile definitions breaks string value definitions
Diffstat (limited to 'Modules/FindCUDA')
-rw-r--r--Modules/FindCUDA/run_nvcc.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindCUDA/run_nvcc.cmake b/Modules/FindCUDA/run_nvcc.cmake
index 28cc1e9..ec5a099 100644
--- a/Modules/FindCUDA/run_nvcc.cmake
+++ b/Modules/FindCUDA/run_nvcc.cmake
@@ -74,7 +74,7 @@ set(CUDA_NVCC_FLAGS @CUDA_NVCC_FLAGS@ ;; @CUDA_WRAP_OPTION_NVCC_FLAGS@) # list
@CUDA_NVCC_FLAGS_CONFIG@
set(nvcc_flags @nvcc_flags@) # list
set(CUDA_NVCC_INCLUDE_DIRS "@CUDA_NVCC_INCLUDE_DIRS@") # list (needs to be in quotes to handle spaces properly).
-set(CUDA_NVCC_COMPILE_DEFINITIONS "@CUDA_NVCC_COMPILE_DEFINITIONS@") # list (needs to be in quotes to handle spaces properly).
+set(CUDA_NVCC_COMPILE_DEFINITIONS [==[@CUDA_NVCC_COMPILE_DEFINITIONS@]==]) # list (needs to be in lua quotes see #16510 ).
set(format_flag "@format_flag@") # string
set(cuda_language_flag @cuda_language_flag@) # list