2011/1/13 <ariasg...@gmx.de>: > Hello, > I have a doxygen custom target defined which works fine when executed > manually in visual studio but since it is a custom command it is not added as > dependency to ALL_BUILD
you can add it to ALL if you specify ALL in add_custom_target: "add_custom_target(Name [ALL] [command1 [args1...]] [COMMAND command2 [args2...] ...] [DEPENDS depend depend depend ... ] [WORKING_DIRECTORY dir] [COMMENT comment] [VERBATIM] [SOURCES src1 [src2...]]) If the ALL option is specified it indicates that this target should be added to the default build target so that it will be run every time." > and manually adding it as a dependency to PACKAGES fails. Unfortunately you cannot add dependencies to "builtin" target > > Is there a way to do that without the need of defining an extra target which > has my doxygen step and the package step as dependency? Add another custom command which execute both your doxygen target AND the builtin package one. and may be vote for this bug/feature http://public.kitware.com/Bug/view.php?id=8438 on next CMake version call vote for "high-in-my-opinion-to-be-fixed-bug" -- Erk Membre de l'April - « promouvoir et défendre le logiciel libre » - http://www.april.org _______________________________________________ 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