Quoting of compile definitions breaks string value definitions 65/176265/1 accepted/tizen_5.0_base accepted/tizen_5.5_base accepted/tizen_5.5_base_mobile_hotfix accepted/tizen_5.5_base_wearable_hotfix tizen_5.0_base tizen_5.5_base tizen_5.5_base_mobile_hotfix tizen_5.5_base_wearable_hotfix tizen_5.5_tv accepted/tizen/5.0/base/20181101.091150 accepted/tizen/5.5/base/20191030.084207 accepted/tizen/5.5/base/mobile/hotfix/20201023.085751 accepted/tizen/5.5/base/wearable/hotfix/20201023.081914 accepted/tizen/base/20180427.142230 submit/tizen_5.0_base/20181101.000001 submit/tizen_5.5_base/20191030.000001 submit/tizen_5.5_base_mobile_hotfix/20201023.171501 submit/tizen_5.5_base_wearable_hotfix/20201023.155601 submit/tizen_base/20180423.100001 tizen_5.5.m2_release
authorjijoong.moon <jijoong.moon@samsung.com>
Thu, 22 Mar 2018 07:06:47 +0000 (16:06 +0900)
committerSangjung woo <sangjung.woo@samsung.com>
Wed, 18 Apr 2018 02:31:58 +0000 (11:31 +0900)
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>
Modules/FindCUDA/run_nvcc.cmake

index 28cc1e9..25f2f72 100644 (file)
@@ -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