frederic heem wrote:
Hi,
Here is the test case:
top level CMakeLists.txt:

ADD_CUSTOM_TARGET(doc
                  COMMAND echo "doc"
                  COMMENT "generate the documentation")
SUBDIRS(test1)

test1 CMakeLists.txt:

ADD_CUSTOM_TARGET(test1
                  COMMAND echo "test1"
                  COMMENT "generate test1 docbook chapter")
ADD_DEPENDENCIES(doc test1)

The archive is available at http://www.cmake.org/Bug/bug.php?op=show&bugid=4414
In which project should I have a look to get an example ?
Thanks,
Frederic Heem

PS: cmake 2.4.6
Try add_subdirectory instead of SUBDIRS. SUBDIRS is an old command and is processed last no matter its order in the file. So, cmake will not know about test1 because the directory will not be processed until after the add_dependencies command.

-Bill

_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to