diff options
author | James Bigler <jbigler@nvidia.com> | 2009-10-07 02:52:52 (GMT) |
---|---|---|
committer | James Bigler <jbigler@nvidia.com> | 2009-10-07 02:52:52 (GMT) |
commit | 94fff7af35117b98219edeb07dd8fdcf34fe3d82 (patch) | |
tree | 0f53c273a7fca2a5063bfe561ba378b3e03bcb0e /Modules/FindCUDA.cmake | |
parent | ca95b339fbc9cb5d09c3fed4cefdf351ed31c2d9 (diff) | |
download | CMake-94fff7af35117b98219edeb07dd8fdcf34fe3d82.zip CMake-94fff7af35117b98219edeb07dd8fdcf34fe3d82.tar.gz CMake-94fff7af35117b98219edeb07dd8fdcf34fe3d82.tar.bz2 |
Fix Xcode build.
Move the make_directory command to the main target, so that CMAKE_CFG_INTDIR
will get expanded by the build tool.
Diffstat (limited to 'Modules/FindCUDA.cmake')
-rw-r--r-- | Modules/FindCUDA.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/FindCUDA.cmake b/Modules/FindCUDA.cmake index a41fae2..34fcb97 100644 --- a/Modules/FindCUDA.cmake +++ b/Modules/FindCUDA.cmake @@ -1027,6 +1027,8 @@ macro(CUDA_WRAP_SRCS cuda_target format generated_files) ${main_dep} DEPENDS ${CUDA_NVCC_DEPEND} DEPENDS ${custom_target_script} + # Make sure the output directory exists before trying to write to it. + COMMAND ${CMAKE_COMMAND} -E make_directory "${generated_file_path}" COMMAND ${CMAKE_COMMAND} ARGS -D verbose:BOOL=${verbose_output} ${ccbin_flags} |