MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0002331 | CMake | CMake | public | 2005-10-05 19:32 | 2016-06-10 14:30 |
| Reporter | Andrew Maclean | ||||
| Assigned To | Bill Hoffman | ||||
| Priority | urgent | Severity | major | Reproducibility | always |
| Status | closed | Resolution | moved | ||
| Platform | OS | OS Version | |||
| Product Version | |||||
| Target Version | Fixed in Version | ||||
| Summary | 0002331: Empty Source Group are not created | ||||
| Description | 1) Subdirectories are not created if the parent is empty. 2) CMake seems to only perform a partial match on source group directories. Details are below: This code fragment seems to work OK: #--------------------------------------------------------------------------- -- # Source Groups. #--------------------------------------------------------------------------- -- SET( SOURCE_GROUP_NAME "GPSLib" ) SET( SOURCE_GROUP_NAME_INC "${SOURCE_GROUP_NAME}/Includes" ) SET( SOURCE_GROUP_NAME_SRC "${SOURCE_GROUP_NAME}/Sources" ) IF ( WIN32 ) STRING( REGEX REPLACE "/" "\\\\" SOURCE_GROUP_NAME_INC ${SOURCE_GROUP_NAME_INC} ) STRING( REGEX REPLACE "/" "\\\\" SOURCE_GROUP_NAME_SRC ${SOURCE_GROUP_NAME_SRC} ) ENDIF ( WIN32 ) SOURCE_GROUP ( ${SOURCE_GROUP_NAME_INC} FILES ${GPS_INCS} ) SOURCE_GROUP ( ${SOURCE_GROUP_NAME} FILES ${GPS_SRCS} ) We get in the Visual Studio solution explorer GPsLib full of .cpp files and a subdirectory Include full of *.h files. If I substitute SOURCE_GROUP_NAME_SRC for SOURCE_GROUP_NAME in the last line above, I expect to get an empty GPSLib directory and two subdirectories Source and Include. However GPSLib is not created at all in this case. It seems that CMake will not create an empty directory in this case. Even though the subdirectories are not empty. I can do this manually in Visual Studio so I don't think it is a Visual Studio issue. CMake seems to only do a partial match on the names for source groups. E.g If we have a source group X/Y and another source group Z/Y then files which we intend to go into Z/Y will in fact go into X/Y and Z/Y is never created even though Z exists. | ||||
| Steps To Reproduce | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2007-08-24 14:23 | Alex Neundorf | Note Added: 0008659 | |||
| 2007-08-24 14:23 | Alex Neundorf | Status | new => assigned | ||
| 2007-08-24 14:23 | Alex Neundorf | Summary | Source Group Problem => Empty Source Group are not created | ||
| 2016-06-10 14:27 | Kitware Robot | Note Added: 0041300 | |||
| 2016-06-10 14:27 | Kitware Robot | Status | assigned => resolved | ||
| 2016-06-10 14:27 | Kitware Robot | Resolution | reopened => moved | ||
| 2016-06-10 14:30 | Kitware Robot | Status | resolved => closed | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||