From fb9d7d3c59b695b8ff778508d5b61ea41d7f6b28 Mon Sep 17 00:00:00 2001 From: James Bigler Date: Wed, 23 Sep 2009 00:50:16 -0400 Subject: 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. --- Modules/FindCUDA/run_nvcc.cmake | 6 ++++++ 1 file changed, 6 insertions(+) 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}" -- cgit v0.12