[cmake-developers] [CMake 0014550]: FindCUDA: source files shared between multiple targets results in linker using objects from both targets

Mantis Bug Tracker mantis at public.kitware.com
Thu Nov 7 07:06:46 EST 2013


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=14550 
====================================================================== 
Reported By:                Nils Gladitz
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   14550
Category:                   (No Category)
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2013-11-07 07:06 EST
Last Modified:              2013-11-07 07:06 EST
====================================================================== 
Summary:                    FindCUDA: source files shared between multiple
targets results in linker using objects from both targets
Description: 
With the attached sample project consisting of CMakeLists.txt and test.cu two
identical targets are being created.

With the Visual Studio 10 generator this results in each target using object
files from the other target resulting in duplicate symbol errors.

With the NMake Makefiles generator there seems to be no issue.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2013-11-07 07:06 Nils Gladitz   New Issue                                    
2013-11-07 07:06 Nils Gladitz   File Added: CMakeLists.txt                    
======================================================================




More information about the cmake-developers mailing list