MantisBT - CMake | ||||||||||
| View Issue Details | ||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | |||||
| 0008223 | CMake | CMake | public | 2008-12-04 04:07 | 2009-09-30 16:04 | |||||
| Reporter | Robert Lenhardt | |||||||||
| Assigned To | Brad King | |||||||||
| Priority | normal | Severity | minor | Reproducibility | always | |||||
| Status | closed | Resolution | fixed | |||||||
| Platform | OS | OS Version | ||||||||
| Product Version | CMake-2-6 | |||||||||
| Target Version | Fixed in Version | |||||||||
| Summary | 0008223: Visual Studio 6 generator does not add targets to workspace in subdirs with EXCLUDE_FROM_ALL set | |||||||||
| Description | Lets say you have ./libtarget/CMakeLists.txt : add_library(lib ...) ./exetarget/CmakeLists.txt : add_subdirectory(../libtarget ... EXCLUDE_FROM_ALL) add_executable(exe ...) target_link_libraries(exe lib) So exe is dependent on lib. The Visual Studio 6 generator correctly adds the lib project to the dependencies of exe, but the project itself is not added unlike the other Visual Studio generators. I have made a patch and copied code from GlobalVisualStudio7Generator.cxx to GlobalVisualStudio6Generator.cxx. From my understanding this code uses GetTargetSets from GlobalGenerator to calculate the correct dependencies. This works for me, but someone with a better overview of the background should look over this. | |||||||||
| Steps To Reproduce | ||||||||||
| Additional Information | ||||||||||
| Tags | No tags attached. | |||||||||
| Relationships |
| |||||||||
| Attached Files | https://public.kitware.com/Bug/file/1894/cmGlobalVisualStudio6Generator.cxx.patch https://public.kitware.com/Bug/file/1895/New-cmGlobalVisualStudio6Generator.cxx.patch | |||||||||
| Issue History | ||||||||||
| Date Modified | Username | Field | Change | |||||||
| 2008-12-04 04:07 | Robert Lenhardt | New Issue | ||||||||
| 2008-12-04 04:07 | Robert Lenhardt | File Added: cmGlobalVisualStudio6Generator.cxx.patch | ||||||||
| 2008-12-04 05:08 | Robert Lenhardt | Note Added: 0014286 | ||||||||
| 2008-12-05 03:41 | Robert Lenhardt | File Added: New-cmGlobalVisualStudio6Generator.cxx.patch | ||||||||
| 2008-12-05 03:43 | Robert Lenhardt | Note Added: 0014301 | ||||||||
| 2009-09-30 12:30 | Bill Hoffman | Status | new => assigned | |||||||
| 2009-09-30 12:30 | Bill Hoffman | Assigned To | => Brad King | |||||||
| 2009-09-30 15:21 | Brad King | Relationship added | child of 0009568 | |||||||
| 2009-09-30 16:04 | Brad King | Note Added: 0017854 | ||||||||
| 2009-09-30 16:04 | Brad King | Status | assigned => closed | |||||||
| 2009-09-30 16:04 | Brad King | Resolution | open => fixed | |||||||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||