Hi,

On Thu, May 17, 2012 at 11:20 PM, David Doria <[email protected]> wrote:

> I have a main project (called Test) that has two submodules, TestA and
> TestB. TestA also has a submodule, which is exactly the same TestB.
>
> So there is a directory Test/TestB as well as Test/TestA/TestB
>
> In TestA/CMakeLists.txt, I have add_subdirectory(TestB).
> In Test/CMakeLists.txt, I have add_subdirectory(TestA) as well
> as add_subdirectory(TestB).
>

Why are you doing that? If TestB is always available as sub-dir under TestA
it doesn't make much sense to also add it as a subdirectory of the parent
of TestA - IMHO. Test/CMakeLists.txt can still use all targets from TestB,
since target names are always valid across the complete project.

Since TestA is a submodule, it should always be present in the sources
anyway.

Andreas
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to