[cmake-developers] [CMake 0013598]: source_group is broken when using regex and putting into "Source Files"

Mantis Bug Tracker mantis at public.kitware.com
Sun Oct 21 06:32:48 EDT 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=13598 
====================================================================== 
Reported By:                James
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13598
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2012-10-21 06:32 EDT
Last Modified:              2012-10-21 06:32 EDT
====================================================================== 
Summary:                    source_group is broken when using regex and putting
into "Source Files"
Description: 
WORKS: source_group(Source\ Files\\Hello FILES directives/asm/test.c)
WORKS: source_group(Source\ Files2\\Hello REGULAR_EXPRESSION
directives/asm/.*\\.c)
FAILS: source_group(Source\ Files\\Hello REGULAR_EXPRESSION
directives/asm/.*\\.c)

It seems the explicit combination of using REGULAR_EXPRESSION and attempting to
put the result inside "Source Files" fails (that is, Visual Studio does not show
it in the sub-folder; it appears directly inside Source Files).

Steps to Reproduce: 
Create a CMake file that sorts files using the above combination.
Generate the CMake file.
Notice that in Visual Studio it is not placed in the correct group.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-10-21 06:32 James          New Issue                                    
======================================================================




More information about the cmake-developers mailing list