summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjijoong.moon <jijoong.moon@samsung.com>2018-03-22 07:06:47 (GMT)
committerSangjung woo <sangjung.woo@samsung.com>2018-04-18 02:31:58 (GMT)
commitf40a94b4da18da0a39189ef168dd47893a27af19 (patch)
tree23ab130d2fe3abd39fd577ffadc31f9a0f201324
parentd2da1d795e53547eea754244b6c9f85c539a1c73 (diff)
downloadcmake-tizen_base.zip
cmake-tizen_base.tar.gz
cmake-tizen_base.tar.bz2
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>
-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