summaryrefslogtreecommitdiffstats
path: root/Modules/FindCUDA
diff options
context:
space:
mode:
authorJames Bigler <jbigler@nvidia.com>2009-09-23 04:50:16 (GMT)
committerJames Bigler <jbigler@nvidia.com>2009-09-23 04:50:16 (GMT)
commitfb9d7d3c59b695b8ff778508d5b61ea41d7f6b28 (patch)
tree0d802c9943572ab9a7ec96278440339e3a520f48 /Modules/FindCUDA
parent07a473d5f5056d864865302f139a7a436d95be80 (diff)
downloadCMake-fb9d7d3c59b695b8ff778508d5b61ea41d7f6b28.zip
CMake-fb9d7d3c59b695b8ff778508d5b61ea41d7f6b28.tar.gz
CMake-fb9d7d3c59b695b8ff778508d5b61ea41d7f6b28.tar.bz2
Added a command to make the output directory. This is to fix the XCode build that uses a different output directory than other systems, and rather than try to match that we'll just make it.
Diffstat (limited to 'Modules/FindCUDA')
-rw-r--r--Modules/FindCUDA/run_nvcc.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/FindCUDA/run_nvcc.cmake b/Modules/FindCUDA/run_nvcc.cmake
index 31b9664..8fdee9a 100644
--- a/Modules/FindCUDA/run_nvcc.cmake
+++ b/Modules/FindCUDA/run_nvcc.cmake
@@ -120,6 +120,12 @@ cuda_execute_process(
COMMAND "${CMAKE_COMMAND}" -E remove "${generated_file}"
)
+# Make sure the output directory is present
+cuda_execute_process(
+ "Creating output directory: ${generated_file_path}"
+ COMMAND "${CMAKE_COMMAND}" -E make_directory "${generated_file_path}"
+ )
+
# Generate the dependency file
cuda_execute_process(
"Generating dependency file: ${NVCC_generated_dependency_file}"