summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjijoong.moon <jijoong.moon@samsung.com>2018-03-22 07:06:47 (GMT)
committerjijoong.moon <jijoong.moon@samsung.com>2018-03-22 08:07:47 (GMT)
commit80d72b7a34d340b27c709cabd22c031c81aafe18 (patch)
treee4465c6064481d963a5574608487dc04d89d7394
parent779ea3dfb35edaa240c69bbe261d10916876cecf (diff)
downloadcmake-sandbox/jijoong/3.9.4.zip
cmake-sandbox/jijoong/3.9.4.tar.gz
cmake-sandbox/jijoong/3.9.4.tar.bz2
Quoting of compile definitions breaks string value definitionssandbox/jijoong/3.9.4
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 Signed-off-by: jijoong.moon <jijoong.moon@samsung.com>
-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..25f2f72 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