[cmake-developers] [CMake 0013611]: SOURCE_GROUP doesn't use last match

Mantis Bug Tracker mantis at public.kitware.com
Sat Oct 27 05:28:14 EDT 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=13611 
====================================================================== 
Reported By:                tzeH
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13611
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2012-10-27 05:28 EDT
Last Modified:              2012-10-27 05:28 EDT
====================================================================== 
Summary:                    SOURCE_GROUP doesn't use last match
Description: 
I use a main CMake file and an include with source_group commands.

Using the SOURCE_GROUP commands like this:

SOURCE_GROUP( Tests\\Project REGULAR_EXPRESSION tests/Project/.* )
SOURCE_GROUP( Tests\\Project\\GUI REGULAR_EXPRESSION tests/Project/GUI/.* )
SOURCE_GROUP( Tests\\Project\\DSP REGULAR_EXPRESSION tests/Project/DSP/.* )
SOURCE_GROUP( Tests\\Project\\math REGULAR_EXPRESSION tests/Project/math/.* )

does not create three sub-folders as it should according to the documentation:
"If no group explicitly lists the file, the LAST group whose regular expression
matches the file will be favored."


Additional Information: 
Removing the first entry gives me three subfolders, but I want the files in
tests/Project to be in a folder and not in "Source Files".

I found this with the Visual Studio 2010 generators.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-10-27 05:28 tzeH           New Issue                                    
======================================================================




More information about the cmake-developers mailing list