diff options
author | Robert Maynard <robert.maynard@kitware.com> | 2017-08-14 15:43:32 (GMT) |
---|---|---|
committer | Robert Maynard <robert.maynard@kitware.com> | 2017-08-15 16:58:52 (GMT) |
commit | c1f4f13dbfa7caf6bbf4d8b70a7f09f786c7eed6 (patch) | |
tree | d0377e4314c7f1511a2a1aed46eb5d646493f5d1 /Modules/FindCUDA | |
parent | ce2750817b768cee6ae119747cdf806401f09332 (diff) | |
download | CMake-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.cmake | 2 |
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 |