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.

This commit is contained in:
James Bigler 2009-09-23 00:50:16 -04:00
parent 07a473d5f5
commit fb9d7d3c59
1 changed files with 6 additions and 0 deletions

View File

@ -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}"