[cmake-developers] [CMake 0015016]: FindCUDA creates intermediate objects in wrong place when CUDA_SEPARABLE_COMPILATION is ON.

Mantis Bug Tracker mantis at public.kitware.com
Thu Jul 10 20:19:47 EDT 2014


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=15016 
====================================================================== 
Reported By:                Marco
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15016
Category:                   Modules
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2014-07-10 20:19 EDT
Last Modified:              2014-07-10 20:19 EDT
====================================================================== 
Summary:                    FindCUDA creates intermediate objects in wrong place
when CUDA_SEPARABLE_COMPILATION is ON.
Description: 
When setting CUDA_SEPARABLE_COMPILATION to ON, if .cu files are not in the same
folder of CMakeLists.txt, intermediate linkage objects are generated in the
wrong folder, causing a compilation error that, on Visual Studio, looks like
this:
Cannot open compiler generated file:
'project_path/CMakeFiles/project_name/Debug/project_name_intermediate_link.obj':
No such file or directory.

Steps to Reproduce: 
The file attached to this report has a .cu file and a CMakeLists.txt. Generate a
Visual Studio solution and try to compile the project to reproduce this bug.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-07-10 20:19 Marco          New Issue                                    
2014-07-10 20:19 Marco          File Added: find_cuda_bug.7z                    
======================================================================



More information about the cmake-developers mailing list