summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Bigler <jbigler@nvidia.com>2009-09-23 00:50:16 -0400
committerJames Bigler <jbigler@nvidia.com>2009-09-23 00:50:16 -0400
commitfb9d7d3c59b695b8ff778508d5b61ea41d7f6b28 (patch)
tree0d802c9943572ab9a7ec96278440339e3a520f48
parent07a473d5f5056d864865302f139a7a436d95be80 (diff)
downloadcmake-fb9d7d3c59b695b8ff778508d5b61ea41d7f6b28.tar.gz
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.
-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 31b96647d0..8fdee9ace7 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}"