[cmake-developers] [CMake 0014094]: Marco CUDA_WRAP_SRCS does not de-duplicate entries in CUDA_NVCC_INCLUDE_DIRECTORIES

Mantis Bug Tracker mantis at public.kitware.com
Wed Apr 17 04:08:49 EDT 2013


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=14094 
====================================================================== 
Reported By:                Marcel Loose
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   14094
Category:                   Modules
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2013-04-17 04:08 EDT
Last Modified:              2013-04-17 04:08 EDT
====================================================================== 
Summary:                    Marco CUDA_WRAP_SRCS does not de-duplicate entries
in CUDA_NVCC_INCLUDE_DIRECTORIES
Description: 
As of CMake 2.8.8, the INCLUDE_DIRECTORIES() command does not de-duplicate
entries. Failure to do so can lead to an extremely long and repetitive list of
-I entries on the command line.

Steps to Reproduce: 
1. Make sure you're using cmake 2.8.8 or later
2. Deliberately add duplicate entries using INCLUDE_DIRECTORIES in your project.
3. Add a CUDA executable using CUDA_ADD_EXECUTABLE.
4. Run 'make' with verbose output and check the command line passed to nvcc.

Additional Information: 
The attached simple patch solves this issue and should not cause any problems
with older cmake versions. The patch is against the cmake 2.8.9 release.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2013-04-17 04:08 Marcel Loose   New Issue                                    
2013-04-17 04:08 Marcel Loose   File Added: FindCUDA.cmake.patch                
   
======================================================================




More information about the cmake-developers mailing list