MantisBT - CMake | ||||||||||
View Issue Details | ||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||
0009568 | CMake | CMake | public | 2009-09-19 00:57 | 2009-10-01 10:30 | |||||
Reporter | Shirokov Anatoly | |||||||||
Assigned To | Brad King | |||||||||
Priority | normal | Severity | major | Reproducibility | always | |||||
Status | closed | Resolution | fixed | |||||||
Platform | OS | OS Version | ||||||||
Product Version | CMake-2-6 | |||||||||
Target Version | Fixed in Version | |||||||||
Summary | 0009568: Visual Studio 6 generator issue | |||||||||
Description | Visual Studio 6 generator does not include all dependencies into workspaces for nested project. | |||||||||
Steps To Reproduce | ||||||||||
Additional Information | I have a simple project with the following structure: root CMakeLists.txt app CMakeLists.txt app.cpp lib CMakeLists.txt lib.cpp The root\CMakeLists.txt contains: cmake_minimum_required(VERSION 2.6) project(ROOT) add_subdirectory(app) add_subdirectory(lib) The root\app\CMakeLists.txt contains: project( APP ) add_executable( app app.cpp ) target_link_libraries( app lib ) add_dependencies( app lib ) The root\app\CMakeLists.txt contains: project( LIB ) add_library( lib STATIC lib.cpp) I try to generate Visual Studio 6 project: cd root mkdir build cd build cmake -G "Visual Studio 6" .. CMake generates the following: ALL_BUILD.dsp ALL_BUILD.dsp.cmake CMakeCache.txt cmake_install.cmake ROOT.dsw app\ALL_BUILD.dsp app\ALL_BUILD.dsp.cmake app\app.dsp app\app.dsp.cmake app\APP.dsw app\CMakeFiles app\cmake_install.cmake app\CMakeFiles\ALL_BUILD.rule CMakeFiles\ALL_BUILD.rule CMakeFiles\cmake.check_cache CMakeFiles\CMakeCCompiler.cmake CMakeFiles\CMakeCPlatform.cmake CMakeFiles\CMakeCXXCompiler.cmake CMakeFiles\CMakeCXXPlatform.cmake CMakeFiles\CMakeDetermineCompilerABI_C.bin CMakeFiles\CMakeDetermineCompilerABI_CXX.bin CMakeFiles\CMakeOutput.log CMakeFiles\CMakeRCCompiler.cmake CMakeFiles\CMakeSystem.cmake CMakeFiles\CMakeTmp CMakeFiles\CMakeTmp\CMakeFiles CMakeFiles\CMakeTmp\Debug lib\ALL_BUILD.dsp lib\ALL_BUILD.dsp.cmake lib\CMakeFiles lib\cmake_install.cmake lib\lib.dsp lib\lib.dsp.cmake lib\LIB.dsw lib\CMakeFiles\ALL_BUILD.rule When I open ROOT.dsw, I can build all targets correctly according to dependencies. Why cannot I do the same when I open nested app\APP.dsw workspace? In other words, why does not CMake include the lib project into the APP.DSW workspace? I have tested the Visual Studio 2005 generator for this project. There are no such problems with one. The app.sln solution includes lib.vcproj as expected. It looks like something is wrong with Visual Studio 6 generator. | |||||||||
Tags | No tags attached. | |||||||||
Relationships |
| |||||||||
Attached Files | ![]() https://public.kitware.com/Bug/file/2461/cmGlobalVisualStudio6Generator.cxx.patch.txt ![]() https://public.kitware.com/Bug/file/2462/cmGlobalVisualStudio6Generator.h.patch.txt ![]() https://public.kitware.com/Bug/file/2463/cmGlobalVisualStudio6Generator.h.patch.ansi.txt ![]() https://public.kitware.com/Bug/file/2464/cmGlobalVisualStudio6Generator.cxx.patch.ansi.txt ![]() https://public.kitware.com/Bug/file/2481/utilitytest.zip | |||||||||
Issue History | ||||||||||
Date Modified | Username | Field | Change | |||||||
2009-09-19 00:57 | Shirokov Anatoly | New Issue | ||||||||
2009-09-19 04:03 | Shirokov Anatoly | Note Added: 0017619 | ||||||||
2009-09-19 08:43 | Bill Hoffman | Note Added: 0017633 | ||||||||
2009-09-19 08:44 | Bill Hoffman | Status | new => assigned | |||||||
2009-09-19 08:44 | Bill Hoffman | Assigned To | => Bill Hoffman | |||||||
2009-09-19 14:31 | Shirokov Anatoly | File Added: cmGlobalVisualStudio6Generator.cxx.patch.txt | ||||||||
2009-09-19 14:31 | Shirokov Anatoly | File Added: cmGlobalVisualStudio6Generator.h.patch.txt | ||||||||
2009-09-19 14:35 | Shirokov Anatoly | Note Added: 0017645 | ||||||||
2009-09-19 15:10 | Shirokov Anatoly | Note Added: 0017646 | ||||||||
2009-09-19 15:55 | Bill Hoffman | Note Added: 0017649 | ||||||||
2009-09-19 17:17 | Shirokov Anatoly | File Added: cmGlobalVisualStudio6Generator.h.patch.ansi.txt | ||||||||
2009-09-19 17:17 | Shirokov Anatoly | File Added: cmGlobalVisualStudio6Generator.cxx.patch.ansi.txt | ||||||||
2009-09-19 17:18 | Shirokov Anatoly | Note Added: 0017651 | ||||||||
2009-09-22 02:41 | Shirokov Anatoly | Note Added: 0017692 | ||||||||
2009-09-22 09:43 | Brad King | Note Added: 0017696 | ||||||||
2009-09-22 10:18 | Shirokov Anatoly | Note Added: 0017697 | ||||||||
2009-09-22 10:19 | Shirokov Anatoly | File Added: utilitytest.zip | ||||||||
2009-09-22 10:34 | Shirokov Anatoly | Note Added: 0017699 | ||||||||
2009-09-22 10:39 | Brad King | Note Added: 0017700 | ||||||||
2009-09-22 10:39 | Shirokov Anatoly | Note Added: 0017701 | ||||||||
2009-09-30 15:21 | Brad King | Relationship added | parent of 0008223 | |||||||
2009-09-30 16:07 | Brad King | Note Added: 0017855 | ||||||||
2009-09-30 16:08 | Brad King | Assigned To | Bill Hoffman => Brad King | |||||||
2009-09-30 16:08 | Brad King | Note Edited: 0017855 | ||||||||
2009-10-01 10:27 | Brad King | Note Added: 0017863 | ||||||||
2009-10-01 10:30 | Brad King | Status | assigned => closed | |||||||
2009-10-01 10:30 | Brad King | Resolution | open => fixed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|