summaryrefslogtreecommitdiffstats
path: root/Modules/FindCUDA/run_nvcc.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/FindCUDA/run_nvcc.cmake')
-rw-r--r--Modules/FindCUDA/run_nvcc.cmake14
1 files changed, 7 insertions, 7 deletions
diff --git a/Modules/FindCUDA/run_nvcc.cmake b/Modules/FindCUDA/run_nvcc.cmake
index d7fde75..31bd74e 100644
--- a/Modules/FindCUDA/run_nvcc.cmake
+++ b/Modules/FindCUDA/run_nvcc.cmake
@@ -168,14 +168,14 @@ endif()
cuda_execute_process(
"Generating dependency file: ${NVCC_generated_dependency_file}"
COMMAND "${CUDA_NVCC_EXECUTABLE}"
+ -M
"${source_file}"
- ${depends_CUDA_NVCC_FLAGS}
- ${nvcc_flags}
+ -o "${NVCC_generated_dependency_file}"
${CCBIN}
+ ${nvcc_flags}
${nvcc_host_compiler_flags}
+ ${depends_CUDA_NVCC_FLAGS}
-DNVCC
- -M
- -o "${NVCC_generated_dependency_file}"
${CUDA_NVCC_INCLUDE_ARGS}
)
@@ -223,12 +223,12 @@ cuda_execute_process(
"Generating ${generated_file}"
COMMAND "${CUDA_NVCC_EXECUTABLE}"
"${source_file}"
- ${CUDA_NVCC_FLAGS}
- ${nvcc_flags}
+ ${format_flag} -o "${generated_file}"
${CCBIN}
+ ${nvcc_flags}
${nvcc_host_compiler_flags}
+ ${CUDA_NVCC_FLAGS}
-DNVCC
- ${format_flag} -o "${generated_file}"
${CUDA_NVCC_INCLUDE_ARGS}
)