[Cmake-commits] [cmake-commits] bigler committed run_nvcc.cmake 1.8 1.9
cmake-commits at cmake.org
cmake-commits at cmake.org
Thu Jan 28 12:58:24 EST 2010
Update of /cvsroot/CMake/CMake/Modules/FindCUDA
In directory public:/mounts/ram/cvs-serv4663/FindCUDA
Modified Files:
run_nvcc.cmake
Log Message:
Define __CUDACC__ during dependency scanning, since NVCC doesn't.
Index: run_nvcc.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/FindCUDA/run_nvcc.cmake,v
retrieving revision 1.8
retrieving revision 1.9
diff -C 2 -d -r1.8 -r1.9
*** run_nvcc.cmake 8 Jan 2010 17:14:21 -0000 1.8
--- run_nvcc.cmake 28 Jan 2010 17:58:22 -0000 1.9
***************
*** 165,168 ****
--- 165,174 ----
endif()
+ # nvcc doesn't define __CUDACC__ for some reason when generating dependency files. This
+ # can cause incorrect dependencies when #including files based on this macro which is
+ # defined in the generating passes of nvcc invokation. We will go ahead and manually
+ # define this for now until a future version fixes this bug.
+ set(CUDACC_DEFINE -D__CUDACC__)
+
# Generate the dependency file
cuda_execute_process(
***************
*** 170,173 ****
--- 176,180 ----
COMMAND "${CUDA_NVCC_EXECUTABLE}"
-M
+ ${CUDACC_DEFINE}
"${source_file}"
-o "${NVCC_generated_dependency_file}"
More information about the Cmake-commits
mailing list