<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
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. <br>
<br>
It looks like something is wrong with Visual Studio 6 generator. <br>
<br>
Thanks in advance,<br>
Anatoly Shirokov.<br>
<br>
Anatoly Shirokov пишет:
<blockquote cite="mid:4AB35FFD.7070202@mail.ru" type="cite">
  <div class="moz-text-flowed"
 style="font-family: -moz-fixed; font-size: 13px;" lang="x-unicode">Hello
there!
  <br>
  <br>
I have a simple project with the following structure:
  <br>
root
  <br>
  CMakeLists.txt
  <br>
  app
  <br>
     CMakeLists.txt
  <br>
     app.cpp
  <br>
  lib
  <br>
     CMakeLists.txt
  <br>
     lib.cpp
  <br>
  <br>
The root\CMakeLists.txt contains:
  <br>
cmake_minimum_required(VERSION 2.6)
  <br>
project(ROOT)
  <br>
add_subdirectory(app)
  <br>
add_subdirectory(lib)
  <br>
  <br>
The root\app\CMakeLists.txt contains:
  <br>
project( APP )
  <br>
add_executable( app app.cpp )
  <br>
target_link_libraries( app lib )
  <br>
add_dependencies( app lib )
  <br>
  <br>
The root\app\CMakeLists.txt contains:
  <br>
project( LIB )
  <br>
add_library( lib STATIC lib.cpp)
  <br>
  <br>
I try to generate Visual Studio 6 project:
  <br>
cd root
  <br>
mkdir build
  <br>
cd build
  <br>
cmake -G "Visual Studio 6" ..
  <br>
  <br>
CMake generates the following:
  <br>
ALL_BUILD.dsp
  <br>
ALL_BUILD.dsp.cmake
  <br>
CMakeCache.txt
  <br>
cmake_install.cmake
  <br>
ROOT.dsw
  <br>
app\ALL_BUILD.dsp
  <br>
app\ALL_BUILD.dsp.cmake
  <br>
app\app.dsp
  <br>
app\app.dsp.cmake
  <br>
app\APP.dsw
  <br>
app\CMakeFiles
  <br>
app\cmake_install.cmake
  <br>
app\CMakeFiles\ALL_BUILD.rule
  <br>
CMakeFiles\ALL_BUILD.rule
  <br>
CMakeFiles\cmake.check_cache
  <br>
CMakeFiles\CMakeCCompiler.cmake
  <br>
CMakeFiles\CMakeCPlatform.cmake
  <br>
CMakeFiles\CMakeCXXCompiler.cmake
  <br>
CMakeFiles\CMakeCXXPlatform.cmake
  <br>
CMakeFiles\CMakeDetermineCompilerABI_C.bin
  <br>
CMakeFiles\CMakeDetermineCompilerABI_CXX.bin
  <br>
CMakeFiles\CMakeOutput.log
  <br>
CMakeFiles\CMakeRCCompiler.cmake
  <br>
CMakeFiles\CMakeSystem.cmake
  <br>
CMakeFiles\CMakeTmp
  <br>
CMakeFiles\CMakeTmp\CMakeFiles
  <br>
CMakeFiles\CMakeTmp\Debug
  <br>
lib\ALL_BUILD.dsp
  <br>
lib\ALL_BUILD.dsp.cmake
  <br>
lib\CMakeFiles
  <br>
lib\cmake_install.cmake
  <br>
lib\lib.dsp
  <br>
lib\lib.dsp.cmake
  <br>
lib\LIB.dsw
  <br>
lib\CMakeFiles\ALL_BUILD.rule
  <br>
  <br>
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?
  <br>
In other words, why CMake does not include the lib project into the
APP.DSW workspace?
  <br>
  <br>
Is it possible to hint CMake to do it?
  <br>
  <br>
Thanks in advance for any suggestions,
  <br>
Anatoly Shirokov.
  <br>
  <br>
  <br>
  <br>
  <br>
  <br>
  <br>
  <br>
  </div>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>

Visit other Kitware open-source projects at <a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>

Please keep messages on-topic and check the CMake FAQ at: <a class="moz-txt-link-freetext" href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a>

Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a></pre>
</blockquote>
<br>
</body>
</html>