summaryrefslogtreecommitdiffstats
path: root/Modules/FindCUDA.cmake
diff options
context:
space:
mode:
authorJames Bigler <jbigler@nvidia.com>2009-10-07 02:52:52 (GMT)
committerJames Bigler <jbigler@nvidia.com>2009-10-07 02:52:52 (GMT)
commit94fff7af35117b98219edeb07dd8fdcf34fe3d82 (patch)
tree0f53c273a7fca2a5063bfe561ba378b3e03bcb0e /Modules/FindCUDA.cmake
parentca95b339fbc9cb5d09c3fed4cefdf351ed31c2d9 (diff)
downloadCMake-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.cmake2
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}