Micha Renner wrote:
I would try

        add_custom_target( ${doc_target_name}
             DEPENDS ${generated_conf}
             COMMAND ${doxygen_exe} ${generated_conf} 2 > filename
             WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
             COMMENT "Generating documentation using Doxygen"
         )

This will just fail as > has no meaning to doxygen. The only reason this works for you when you try that command in a terminal is that your Bourne-like shell will interpret the "> filename" and not pass it to doxygen at all. When you call doxygen like this from any generated project file there will be no shell involved.

Eike
--

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