View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014043CMakeCMakepublic2013-03-27 06:152013-10-07 10:09
ReporterMathias Gaunard 
Assigned ToRobert Maynard 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
Platformx86_64OSLinuxOS Version
Product VersionCMake 2.8.10 
Target VersionFixed in VersionCMake 2.8.12 
Summary0014043: CUDA_COMPUTE_BUILD_PATH unnecessarily generates very long path when source is in binary directory
DescriptionI 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.
TagsNo tags attached.
Attached Filesdiff file icon cuda_source_in_binary_path.diff [^] (665 bytes) 2013-03-27 06:15 [Show Content]
diff file icon cuda_source_in_binary_path_fixed.diff [^] (834 bytes) 2013-03-27 06:36 [Show Content]

 Relationships

  Notes
(0032704)
Mathias Gaunard (reporter)
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 (manager)
2013-10-07 10:09

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2013-03-27 06:15 Mathias Gaunard New Issue
2013-03-27 06:15 Mathias Gaunard File Added: cuda_source_in_binary_path.diff
2013-03-27 06:36 Mathias Gaunard File Added: cuda_source_in_binary_path_fixed.diff
2013-03-27 06:37 Mathias Gaunard Note Added: 0032704
2013-03-27 08:29 Robert Maynard Assigned To => Robert Maynard
2013-03-27 08:29 Robert Maynard Status new => assigned
2013-04-18 14:20 Robert Maynard Status assigned => acknowledged
2013-05-24 09:36 Robert Maynard Status acknowledged => resolved
2013-05-24 09:36 Robert Maynard Fixed in Version => CMake 2.8.12
2013-05-24 09:36 Robert Maynard Resolution open => fixed
2013-10-07 10:09 Robert Maynard Note Added: 0034059
2013-10-07 10:09 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team