summaryrefslogtreecommitdiff
path: root/Modules
diff options
context:
space:
mode:
authorjijoong.moon <jijoong.moon@samsung.com>2018-03-22 16:06:47 +0900
committerSangjung woo <sangjung.woo@samsung.com>2018-04-18 11:31:58 +0900
commitf40a94b4da18da0a39189ef168dd47893a27af19 (patch)
tree23ab130d2fe3abd39fd577ffadc31f9a0f201324 /Modules
parentd2da1d795e53547eea754244b6c9f85c539a1c73 (diff)
downloadcmake-f40a94b4da18da0a39189ef168dd47893a27af19.tar.gz
cmake-f40a94b4da18da0a39189ef168dd47893a27af19.tar.bz2
cmake-f40a94b4da18da0a39189ef168dd47893a27af19.zip
FindCUDA:Improve quoting of CUDA_NVCC_COMPILE_DEFINITIONS Improve FindCUDA in order to resolve nvcc fatal : Stray '"' character error FYI : https://gitlab.kitware.com/cmake/cmake/commit/c1f4f13dbfa7caf6bbf4d8b70a7f09f786c7eed6 Change-Id: I2c970dfe122d8578ed008cd3ab75062761a7aa49 Signed-off-by: jijoong.moon <jijoong.moon@samsung.com> Signed-off-by: Sangjung woo <sangjung.woo@samsung.com>
Diffstat (limited to 'Modules')
-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 28cc1e99e..25f2f72a2 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 quotes to handle spaces properly).
set(format_flag "@format_flag@") # string
set(cuda_language_flag @cuda_language_flag@) # list