MantisBT - CMake
View Issue Details
0014043CMakeCMakepublic2013-03-27 06:152013-10-07 10:09
Mathias Gaunard 
Robert Maynard 
normalminoralways
closedfixed 
x86_64Linux
CMake 2.8.10 
CMake 2.8.12 
0014043: CUDA_COMPUTE_BUILD_PATH unnecessarily generates very long path when source is in binary directory
I generate .cu files in the binary directory that I then build with CUDA_ADD_EXECUTABLE. Unfortunately CUDA_COMPUTE_BUILD_PATH will generate a path for intermediate files based on the relative path of that .cu file to the source directory; this may cause very long paths in the resulting building rules.

In particular it prevents building with Ninja on Linux.

Patch to fix this problem is attached: it makes the path relative to the current binary directory if the file is in the current binary directory.
No tags attached.
diff cuda_source_in_binary_path.diff (665) 2013-03-27 06:15
https://public.kitware.com/Bug/file/4695/cuda_source_in_binary_path.diff
diff cuda_source_in_binary_path_fixed.diff (834) 2013-03-27 06:36
https://public.kitware.com/Bug/file/4696/cuda_source_in_binary_path_fixed.diff
Issue History
2013-03-27 06:15Mathias GaunardNew Issue
2013-03-27 06:15Mathias GaunardFile Added: cuda_source_in_binary_path.diff
2013-03-27 06:36Mathias GaunardFile Added: cuda_source_in_binary_path_fixed.diff
2013-03-27 06:37Mathias GaunardNote Added: 0032704
2013-03-27 08:29Robert MaynardAssigned To => Robert Maynard
2013-03-27 08:29Robert MaynardStatusnew => assigned
2013-04-18 14:20Robert MaynardStatusassigned => acknowledged
2013-05-24 09:36Robert MaynardStatusacknowledged => resolved
2013-05-24 09:36Robert MaynardFixed in Version => CMake 2.8.12
2013-05-24 09:36Robert MaynardResolutionopen => fixed
2013-10-07 10:09Robert MaynardNote Added: 0034059
2013-10-07 10:09Robert MaynardStatusresolved => closed

Notes
(0032704)
Mathias Gaunard   
2013-03-27 06:37   
Wrong diff in first file, please delete.
Change also available as a pull request on github:
https://github.com/Kitware/CMake/pull/39 [^]
(0034059)
Robert Maynard   
2013-10-07 10:09   
Closing resolved issues that have not been updated in more than 4 months.